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=031d50ddf57072272686d68b5db0f6699f01f359;p=evergreen%2Fequinox.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 8211b23fd3..7d06aba9fb 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)