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>
Tue, 29 Aug 2017 19:28:14 +0000 (15:28 -0400)
commit4ce9b2241b078e19221fd7ff7b06d3246e997a7e
treefc39fd2c5f1b353bd3e55d8f3f87127114fd16d1
parentfbfc664e843109a12ec950f0e47f6aca23a2792d
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]