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 <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
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)