2015-01-21 36 views
0

我只是從mysql切換到PostgreSQL數據庫。現在我不能創建用戶,因爲自從我切換到PostgreSQL Laravel似乎不再產生remember_token,我收到此錯誤:Laravel Remember_token不再由Laravel創建

"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "remember_token" violates not-null constraint DETAIL: Failing row contains (blah blah blah)"

發生了什麼事?

+1

您是否在SchemaBuilder中使字段'nullable'? '$表 - >字符串( 'remember_token') - >可以爲空()'。 – Mohebifar 2015-01-21 06:51:27

+0

不,我沒有,我不知道它應該是空的,我會嘗試 – 2015-01-21 13:13:36

回答

0

是的,記憶令牌需要爲空,謝謝mohebifar