Now, the expected behavior is that message should get update but the query is not working... |
If mode:'timestamp' is removed from scheme in updated_at then it works... there might be a conflict between the type of mode: timestamp and that is returned by (unixepoch())
This is an issue with SQLite itself, not Drizzle. To solve it, you can try doing strftime('%s', 'now') instead of unixepoch() in insert/update queries.
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.24.2
Describe the Bug
If I set
mode:'timestamp'
in drizzle schema updated_at key then the update query is not working below is the example code:this is the schema I am using
this is the query I was trying to execute...
Expected behavior
Now, the expected behavior is that message should get update but the query is not working... | If
mode:'timestamp'
is removed from scheme in updated_at then it works... there might be a conflict between the type of mode: timestamp and that is returned by (unixepoch())Environment & setup
node - v20.13.1 npm - 10.8.2
package.json