[open-ils-commits] r15504 - trunk/Open-ILS/src/sql/Pg/upgrade (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 11 15:09:22 EST 2010


Author: dbs
Date: 2010-02-11 15:09:17 -0500 (Thu, 11 Feb 2010)
New Revision: 15504

Modified:
   trunk/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql
Log:
In renaming the config.recuring_fine table, the associated sequence was not automatically renamed; fix that.

This manifested in errors thrown while manipulating recurring fines due to the
expectation that the sequence would be named differently than it was.


Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql	2010-02-11 18:22:32 UTC (rev 15503)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql	2010-02-11 20:09:17 UTC (rev 15504)
@@ -118,4 +118,7 @@
 UPDATE reporter.template SET data = REGEXP_REPLACE(data, E'^(.*)recuring(.*)$', E'\\1recurring\\2') WHERE data LIKE '%recuring%';
 UPDATE reporter.template SET data = REGEXP_REPLACE(data, E'^(.*)recurance(.*)$', E'\\1recurrence\\2') WHERE data LIKE '%recurance%';
 
+-- Update the sequence associated with the table
+ALTER TABLE config.rule_recuring_fine_id_seq RENAME TO rule_recurring_fine_id_seq;
+
 COMMIT;



More information about the open-ils-commits mailing list