breaking: cache_name on records table

This commit is contained in:
Zynh Ludwig 2024-11-16 05:13:28 -08:00
parent 5a000e6b42
commit 99adbd4ea4
3 changed files with 2 additions and 2 deletions

View file

@ -1,8 +1,8 @@
-- Add up migration script here -- Add up migration script here
CREATE TABLE IF NOT EXISTS records ( CREATE TABLE IF NOT EXISTS records (
id INTEGER NOT NULL PRIMARY KEY, id INTEGER NOT NULL PRIMARY KEY,
cache_name TEXT NOT NULL UNIQUE,
uploaded TEXT NOT NULL DEFAULT (datetime('now')), uploaded TEXT NOT NULL DEFAULT (datetime('now')),
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
) STRICT; ) STRICT;

View file

@ -1,2 +1,2 @@
INSERT INTO records (file_path, max_downloads) INSERT INTO records (cache_name, max_downloads)
VALUES (?, ?); VALUES (?, ?);