database upgraded and interface added
This commit is contained in:
parent
f5b94098fb
commit
a4b307ad6c
13 changed files with 2506 additions and 14 deletions
25
share/ddl/PostgreSQL/upgrade/16-17/001-auto.sql
Normal file
25
share/ddl/PostgreSQL/upgrade/16-17/001-auto.sql
Normal 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;
|
||||
|
Reference in a new issue