1
Fork 0
shimmeringmoon/migrations/05-metadata/up.sql
prescientmoon ce18db3d14
Automatically run jacket processing
This commit makes it so jacket processing is automatically run if any of
it's outputs are missing from the filesystem, or if the hash of the raw
jacket directory has changes since the last recorded value.

Moreover, most assets and all fonts are now embedded in the binary!
2024-11-09 12:22:35 +01:00

13 lines
384 B
SQL

CREATE TABLE IF NOT EXISTS metadata (
-- We only a single metadata row in the entire db
id INTEGER PRIMARY KEY CHECK (id == 0),
-- The last hash computed for the directory
-- containing all the raw jackets. If this
-- hash changes, every jacket is reprocessed.
raw_jackets_hash TEXT NOT NULL
) STRICT;
-- Inserts initial metadata row
INSERT INTO metadata VALUES(0, "");