Skip to content
Snippets Groups Projects
Commit 4fe08b50 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- enhanced SQL by creation of table 'deleted'

parent 713a2feb
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,15 @@ CREATE TABLE sourcedatalocat (
INSERT INTO sourcedatalocat VALUES(1,1,'/permanent_storage/2020/01/03/IE200928/V1-FL200931.tif','hdd');
INSERT INTO sourcedatalocat VALUES(2,2,'/permanent_storage/2020/01/03/IE200928/V1-FL200930.xml','hdd');
INSERT INTO sourcedatalocat VALUES(3,3,'/permanent_storage/2020/01/03/IE200928/V1-FL200932.mkv','hdd');
CREATE TABLE deleted (
id INTEGER,
aip_id INTEGER NOT NULL REFERENCES aip (id),
state TEXT NOT NULL,
reason TEXT NOT NULL,
date DATE,
authorized_by TEXT NOT NULL,
PRIMARY KEY(id AUTOINCREMENT)
);
DELETE FROM sqlite_sequence;
INSERT INTO sqlite_sequence VALUES('aip',1);
INSERT INTO sqlite_sequence VALUES('metadatafile',1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment