Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created_at on update CURRENT_TIMESTAMP #6

Open
jhyeon1010 opened this issue Nov 14, 2017 · 0 comments
Open

created_at on update CURRENT_TIMESTAMP #6

jhyeon1010 opened this issue Nov 14, 2017 · 0 comments

Comments

@jhyeon1010
Copy link
Contributor

timestamp 타입 컬럼이 nullable 로 지정되지 않은 경우 발생하는 문제로
->timestamps() 를 사용하거나

->timestamp('created_at')->nullable(); 
->timestamp('updated_at')->nullable(); 

처럼 작성해야 함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant