Default now time for sqlite?

Does anyone know how to set default now time for sqlite-core orm? Thank you!
4 Replies
Angelelz
Angelelz14mo ago
.default(sql`CURRENT_TIMESTAMP`)
.default(sql`CURRENT_TIMESTAMP`)
codefork
codeforkOP14mo ago
@Angelelz Are you sure this works for sqlite?
Angelelz
Angelelz14mo ago
It is a keyword according to the docs: https://www.sqlite.org/lang_keywords.html
codefork
codeforkOP14mo ago
@Angelelz It works! Thanks a bunch!
Want results from more Discord servers?
Add your server