]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0405.schema.acq-hold-copy-map-drop-fkey.sql
LP1889113 Staff catalog record holds sticky org select
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0405.schema.acq-hold-copy-map-drop-fkey.sql
1 -- Drop a foreign key.  It is commented out in 090.schema.action.sql
2 -- but was never dropped via an upgrade script.
3
4 -- No transaction, in case the fkey has already been dropped by
5 -- other means.
6
7 INSERT INTO config.upgrade_log (version) VALUES ('0405'); -- Scott McKellar
8
9 \qecho If the following ALTER TABLE fails because the constraint
10 \qecho being dropped doesn't exist, that's okay.  Ignore the failure.
11
12 ALTER TABLE action.hold_copy_map DROP CONSTRAINT hold_copy_map_target_copy_fkey;