fix unixtime detection for default record time

This commit is contained in:
yggverse 2024-10-04 19:19:06 +03:00
parent 491bec19af
commit f70d159ca7

View File

@ -16,7 +16,7 @@ impl Database {
"CREATE TABLE IF NOT EXISTS `app`
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP
`time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW'))
)",
[],
)?;