You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mediarepo/mediarepo-daemon/mediarepo-database/migrations/20220225183244_add-jobs-tab...

15 lines
354 B
MySQL

CREATE TABLE jobs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
job_type INTEGER NOT NULL,
name VARCHAR(255),
next_run DATETIME,
interval INTEGER
);
CREATE TABLE job_states (
job_id INTEGER,
key VARCHAR(128) NOT NULL DEFAULT 'default',
value BLOB,
PRIMARY KEY (job_id, key),
FOREIGN KEY (job_id) REFERENCES jobs (id)
);