Skip to content

Commit 91057e0

Browse files
committed
fix(storage): use one migration clock read
Generated-by: Codex
1 parent 23a2a56 commit 91057e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/storage/src/sqlite-session-metadata-schema.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,7 @@ const MIGRATIONS: ReadonlyMap<number, string> = new Map([
907907
metadata_version = metadata_version + 1,
908908
committed_at = MAX(
909909
committed_at,
910-
CAST(strftime('%s', 'now') AS INTEGER) * 1000
911-
+ CAST(substr(strftime('%f', 'now'), 4, 3) AS INTEGER)
910+
CAST(unixepoch('now', 'subsec') * 1000 AS INTEGER)
912911
)
913912
WHERE
914913
status IN ('review', 'done')

0 commit comments

Comments
 (0)