[open-ils-commits] r20345 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 27 12:12:06 EDT 2011
Author: miker
Date: 2011-04-27 12:12:03 -0400 (Wed, 27 Apr 2011)
New Revision: 20345
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0526.schema.upgrade-dep-tracking.sql
Log:
Bad miker ... correcting exclusion constraint definition
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-04-27 15:54:48 UTC (rev 20344)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-04-27 16:12:03 UTC (rev 20345)
@@ -62,7 +62,8 @@
db_patch TEXT PRIMARY KEY,
supersedes TEXT[],
deprecates TEXT[],
- EXCLUDE ( supersedes WITH &&, deprecates WITH && )
+ CONSTRAINT supersede_once EXCLUDE USING GIST ( supersedes WITH && ),
+ CONSTRAINT deprecate_once EXCLUDE USING GIST ( deprecates WITH && )
);
INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0526', :eg_version); -- miker
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0526.schema.upgrade-dep-tracking.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0526.schema.upgrade-dep-tracking.sql 2011-04-27 15:54:48 UTC (rev 20344)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0526.schema.upgrade-dep-tracking.sql 2011-04-27 16:12:03 UTC (rev 20345)
@@ -6,7 +6,8 @@
db_patch TEXT PRIMARY KEY,
supersedes TEXT[],
deprecates TEXT[],
- EXCLUDE ( supersedes WITH &&, deprecates WITH && )
+ CONSTRAINT supersede_once EXCLUDE USING GIST ( supersedes WITH && ),
+ CONSTRAINT deprecate_once EXCLUDE USING GIST ( deprecates WITH && )
);
ALTER TABLE config.upgrade_log
More information about the open-ils-commits
mailing list