]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1506534: Improve czifm z3950_attr_type Check
authorJason Boyer <jboyer@library.in.gov>
Tue, 29 Dec 2015 18:53:04 +0000 (13:53 -0500)
committerBen Shum <ben@evergreener.net>
Sun, 28 Feb 2016 00:30:45 +0000 (19:30 -0500)
commitaeb734c75db65650be80c884f55e33ca049b58fa
treef28eb84d4ad1f023f7daf66edf79276dd966b039
parent466756061fce2d877361bd89b7845826059fc330
LP#1506534: Improve czifm z3950_attr_type Check

Rather than use a CHECK constraint, this patch
uses a CONSTRAINT TRIGGER, er, constraint to verify
the z3950_attr_type field. This allows the trigger
to be deferred as any other deferrable constraint
and also allows parallel pg_restore jobs to complete
properly.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/t/lp1506534_z3950_attr_check.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.config_z3950_attr_check.sql [new file with mode: 0644]