In renaming the config.recuring_fine table, the associated sequence was not automatic...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Feb 2010 20:09:17 +0000 (20:09 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 11 Feb 2010 20:09:17 +0000 (20:09 +0000)
This manifested in errors thrown while manipulating recurring fines due to the
expectation that the sequence would be named differently than it was.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15504 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/upgrade/0085.schema.config.recuring_fine.sql

index 5e5a7ff..a527b89 100644 (file)
@@ -118,4 +118,7 @@ UPDATE permission.perm_list SET code = 'ADMIN_RECURRING_FINE_RULE' WHERE code =
 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;