Schema update for v 16 to include import lookups
This commit is contained in:
parent
40dbd1eb50
commit
593efcedfa
11 changed files with 2422 additions and 1 deletions
25
share/ddl/SQLite/upgrade/15-16/001-auto.sql
Normal file
25
share/ddl/SQLite/upgrade/15-16/001-auto.sql
Normal file
|
@ -0,0 +1,25 @@
|
|||
-- Convert schema 'share/ddl/_source/deploy/15/001-auto.yml' to 'share/ddl/_source/deploy/16/001-auto.yml':;
|
||||
|
||||
;
|
||||
BEGIN;
|
||||
|
||||
;
|
||||
CREATE TABLE import_lookups (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
set_id integer NOT NULL,
|
||||
name varchar(255) NOT NULL,
|
||||
entity_id integer NOT NULL,
|
||||
FOREIGN KEY (entity_id) REFERENCES entities(id) ON DELETE NO ACTION ON UPDATE NO ACTION,
|
||||
FOREIGN KEY (set_id) REFERENCES import_sets(id) ON DELETE NO ACTION ON UPDATE NO ACTION
|
||||
);
|
||||
|
||||
;
|
||||
CREATE INDEX import_lookups_idx_entity_id ON import_lookups (entity_id);
|
||||
|
||||
;
|
||||
CREATE INDEX import_lookups_idx_set_id ON import_lookups (set_id);
|
||||
|
||||
;
|
||||
|
||||
COMMIT;
|
||||
|
Reference in a new issue