-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Invalid default value for 'updated_at' #994
Comments
Hey @zrz4066, my wild guess is that you're using MySQL as the database? Similar issue has been discussed at #854. My suggestion for you. Try adding a |
Close as duplicate |
Could we make this obvious somewhere in the tutorial or docs? |
Hey @dreamerlzl, the workaround isn't need anymore after next SeaORM & SeaQuery release. |
If I use ”.col(ColumnDef::new(User::Created_at).date_time().not_null()) ”,It will work。it failed when Change to ".col(ColumnDef::new(User::Created_at).timestamp_with_time_zone().not_null())", error is "Exec("error returned from database: 1067 (42000): Invalid default value for 'updated_at'")"
The text was updated successfully, but these errors were encountered: