feat(nodes): use higher precision timestamps in db

This commit is contained in:
psychedelicious 2023-05-27 21:16:29 +10:00 committed by Kent Keirsey
parent 9317b42e5f
commit fd47e70c92

View File

@ -141,9 +141,9 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):
metadata TEXT,
show_in_gallery BOOLEAN DEFAULT TRUE,
is_intermediate BOOLEAN DEFAULT FALSE,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
-- Updated via trigger
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
-- Soft delete, currently unused
deleted_at DATETIME
);