database upgraded and interface added

This commit is contained in:
Finn 2017-11-23 14:54:59 +00:00
parent f5b94098fb
commit a4b307ad6c
13 changed files with 2506 additions and 14 deletions

View file

@ -0,0 +1,25 @@
-- Convert schema 'share/ddl/_source/deploy/16/001-auto.yml' to 'share/ddl/_source/deploy/17/001-auto.yml':;
;
BEGIN;
;
CREATE TABLE "entity_association" (
"id" serial NOT NULL,
"entity_id" integer NOT NULL,
"lis" boolean,
PRIMARY KEY ("id")
);
CREATE INDEX "entity_association_idx_entity_id" on "entity_association" ("entity_id");
;
ALTER TABLE "entity_association" ADD CONSTRAINT "entity_association_fk_entity_id" FOREIGN KEY ("entity_id")
REFERENCES "entities" ("id") ON DELETE CASCADE DEFERRABLE;
;
ALTER TABLE import_values ALTER COLUMN transaction_id TYPE integer;
;
COMMIT;