-
-
Notifications
You must be signed in to change notification settings - Fork 195
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 column is marked with ON UPDATE TIMESTAMP in MariaDB #975
Comments
I solved it in my case just by changing it
to |
This is weird, because the Can you please share the complete migration file for this table? |
This issue with dates is screwing me over. Now when I try to use a "merge" to update a record, I get this error:
This is my code:
|
Hello. The problem happens with all tables. Apparently those who use Postgre do not have this problem, but MySQL or MariaDB users are suffering.
|
Duplicate of #924 |
I noticed that my records in the database all have their creation dates changed. I noticed that when executing a "save", as per the code example below, even if I am just editing a record, the creation date is also changed and it does not respect my timezone.
This is my table after migration:
Package version
"@adonisjs/core": "^5.8.0",
"@adonisjs/lucid": "^18.4.0",
Node.js and npm version
18.17.0
Sample Code (to reproduce the issue)
In my migration, the timestamp columns are created like this:
The text was updated successfully, but these errors were encountered: