Skip to content

Commit 2508111

Browse files
committed
schema: use numeric timestamps
Makes comparison easier. This is the part where I regret using SQLite though!
1 parent c6cd092 commit 2508111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/watchdog/src/schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ CREATE TABLE IF NOT EXISTS build_deploys (
7777
build_id TEXT NOT NULL,
7878
-- Values: "canary", "ptb", "stable", "development"
7979
branch TEXT NOT NULL,
80-
detected_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M:%f')),
80+
detected_at INTEGER NOT NULL DEFAULT (strftime('%s')),
8181

8282
FOREIGN KEY (build_id) REFERENCES builds(build_id)
8383
);

0 commit comments

Comments
 (0)