breaking: uploaded defaults to datetime('now')
sneaky not null id
This commit is contained in:
parent
7338b3c31f
commit
5c662ba716
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS records (
|
||||
id INTEGER PRIMARY KEY,
|
||||
uploaded TEXT NOT NULL,
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
uploaded TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
file_path TEXT NOT NULL,
|
||||
downloads INTEGER NOT NULL DEFAULT 0,
|
||||
max_downloads INTEGER NOT NULL
|
||||
|
|
Loading…
Reference in a new issue