[open-ils-commits] r12540 - branches/rel_1_4_0/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 16 12:39:32 EDT 2009


Author: miker
Date: 2009-03-16 12:39:29 -0400 (Mon, 16 Mar 2009)
New Revision: 12540

Modified:
   branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
   branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.4-1.4-upgrade-db.sql
Log:
account for audited table constraint changes in 1.2-1.4 upgrade

Modified: branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql	2009-03-16 16:13:11 UTC (rev 12539)
+++ branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql	2009-03-16 16:39:29 UTC (rev 12540)
@@ -17,6 +17,8 @@
 
 \set ON_ERROR_STOP 1
 
+ALTER TABLE auditor.asset_copy_history ALTER COLUMN price DROP NOT NULL; -- Price is nullable in 1.4+, auditor triggers complain when it's not informed of this
+
 BEGIN;
 
 -- To avoid any updates while we're doin' our thing...

Modified: branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.4-1.4-upgrade-db.sql
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.4-1.4-upgrade-db.sql	2009-03-16 16:13:11 UTC (rev 12539)
+++ branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.2.4-1.4-upgrade-db.sql	2009-03-16 16:39:29 UTC (rev 12540)
@@ -17,6 +17,8 @@
 
 \set ON_ERROR_STOP 1
 
+ALTER TABLE auditor.asset_copy_history ALTER COLUMN price DROP NOT NULL; -- Price is nullable in 1.4+, auditor triggers complain when it's not informed of this
+
 BEGIN;
 
 -- To avoid any updates while we're doin' our thing...



More information about the open-ils-commits mailing list