From ec7f027b4e134f0e5584358ff0f695abb40c7873 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Sun, 12 Jul 2020 16:15:02 +0200 Subject: [PATCH] Fix postgres changeset for folders --- .../db/migration/postgresql/V1.8.0__folders.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/store/src/main/resources/db/migration/postgresql/V1.8.0__folders.sql b/modules/store/src/main/resources/db/migration/postgresql/V1.8.0__folders.sql index 19fdd8a3..0eec9067 100644 --- a/modules/store/src/main/resources/db/migration/postgresql/V1.8.0__folders.sql +++ b/modules/store/src/main/resources/db/migration/postgresql/V1.8.0__folders.sql @@ -21,3 +21,14 @@ CREATE TABLE "folder_member" ( ALTER TABLE "item" ADD COLUMN "folder_id" varchar(254) NULL; + +ALTER TABLE "item" +ADD FOREIGN KEY ("folder_id") +REFERENCES "folder"("id"); + +ALTER TABLE "source" +ADD COLUMN "folder_id" varchar(254) NULL; + +ALTER TABLE "source" +ADD FOREIGN KEY ("folder_id") +REFERENCES "folder"("id");