breaking: uploaded defaults to datetime('now')

sneaky not null id
This commit is contained in:
Zynh Ludwig 2024-11-15 22:33:30 -08:00
parent 7338b3c31f
commit 5c662ba716

View file

@ -1,7 +1,7 @@
-- Add up migration script here -- Add up migration script here
CREATE TABLE IF NOT EXISTS records ( CREATE TABLE IF NOT EXISTS records (
id INTEGER PRIMARY KEY, id INTEGER NOT NULL PRIMARY KEY,
uploaded TEXT NOT NULL, uploaded TEXT NOT NULL DEFAULT (datetime('now')),
file_path TEXT NOT NULL, file_path TEXT NOT NULL,
downloads INTEGER NOT NULL DEFAULT 0, downloads INTEGER NOT NULL DEFAULT 0,
max_downloads INTEGER NOT NULL max_downloads INTEGER NOT NULL