LP#1152753: make it possible for serial units to be added to copy buckets
authorMike Rylander <mrylander@gmail.com>
Mon, 24 Apr 2017 16:40:37 +0000 (12:40 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 4 Aug 2017 17:10:28 +0000 (13:10 -0400)
commitacf6022d94786980a61ddf5ae699328bac1b59a4
tree5d49648e61c0e8b090da73366bb122ea2524b75f
parent23932a6d34f866e329624a949e3c24b2522e7b9f
LP#1152753: make it possible for serial units to be added to copy buckets

This patch replaces the baseline asset.copy.id fkey constraints with ones
that understand inheritance, and change all existing contstraints to do the
same via upgrade script.

To test
-------
Create some serial units and verify that they can be added to a copy
bucket.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/070.schema.container.sql
Open-ILS/src/sql/Pg/800.fkeys.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.inheritance-constraint-trigger.sql [new file with mode: 0644]