Fix migration sql

Signed-off-by: trivernis <trivernis@protonmail.com>
feature/jobs
trivernis 3 years ago
parent 0cb37e1268
commit be3e9bbce3
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -7,8 +7,9 @@ CREATE TABLE jobs (
);
CREATE TABLE job_states (
job_id INTEGER FOREIGN KEY REFERENCES jobs (id),
job_id INTEGER,
key VARCHAR(128) NOT NULL DEFAULT 'default',
value BLOB,
PRIMARY KEY (job_id, key)
PRIMARY KEY (job_id, key),
FOREIGN KEY (job_id) REFERENCES jobs (id)
);
Loading…
Cancel
Save