From: Galen Charlton Date: Wed, 27 Sep 2017 16:25:16 +0000 (-0400) Subject: LP#1719726: make new FK constraint consistent X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98a7654937a16f3191a36b631d679488d7707f65;p=evergreen%2Fpines.git LP#1719726: make new FK constraint consistent The constraint fieldset_fieldset_group_fkey will now do 'ON DELETE CASCADE' regardless of whether the database was created from scratch or upgraded. Signed-off-by: Galen Charlton Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql index 3c8540735e..e61abc9077 100644 --- a/Open-ILS/src/sql/Pg/090.schema.action.sql +++ b/Open-ILS/src/sql/Pg/090.schema.action.sql @@ -826,7 +826,7 @@ CREATE TABLE action.fieldset_group ( CREATE TABLE action.fieldset ( id SERIAL PRIMARY KEY, fieldset_group INT REFERENCES action.fieldset_group (id) - DEFERRABLE INITIALLY DEFERRED, + ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, owner INT NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED, owning_lib INT NOT NULL REFERENCES actor.org_unit (id)