[open-ils-commits] r17917 - in trunk/Open-ILS/src/sql/Pg: . upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 23 10:31:34 EDT 2010
Author: scottmk
Date: 2010-09-23 10:31:32 -0400 (Thu, 23 Sep 2010)
New Revision: 17917
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0416.schema.rename-recuring-idx.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
Rename a couple of indexes (recuring -> recurring)
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0416.schema.rename-recuring-idx.sql
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-09-23 13:45:08 UTC (rev 17916)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-09-23 14:31:32 UTC (rev 17917)
@@ -70,7 +70,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0415'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0416'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0416.schema.rename-recuring-idx.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0416.schema.rename-recuring-idx.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0416.schema.rename-recuring-idx.sql 2010-09-23 14:31:32 UTC (rev 17917)
@@ -0,0 +1,11 @@
+INSERT INTO config.upgrade_log (version) VALUES ('0416'); -- Scott McKellar
+
+\qecho No transaction. Renaming two indexes to correct spelling.
+\qecho If either change fails, then the index was probably created
+\qecho correctly in the first place; ignore the failure.
+
+ALTER INDEX config.rule_recuring_fine_name_key
+ RENAME TO rule_recurring_fine_name_key;
+
+ALTER INDEX config.rule_recuring_fine_pkey
+ RENAME TO rule_recurring_fine_pkey;
More information about the open-ils-commits
mailing list