[open-ils-commits] r14526 - in trunk/Open-ILS/src/sql/Pg: . upgrade (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 21 10:59:28 EDT 2009
Author: miker
Date: 2009-10-21 10:59:25 -0400 (Wed, 21 Oct 2009)
New Revision: 14526
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0041.data.fix-in-db-date-range-norm.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
fixing think-o on the date range normalizer
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-21 14:44:17 UTC (rev 14525)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-21 14:59:25 UTC (rev 14526)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0040'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0041'); -- miker
CREATE TABLE config.bib_source (
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-10-21 14:44:17 UTC (rev 14525)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-10-21 14:59:25 UTC (rev 14526)
@@ -2187,7 +2187,7 @@
'Normalize date range',
'Split date ranges in the form of "XXXX-YYYY" into "XXXX YYYY" for proper index.',
'split_date_range',
- 1
+ 0
);
INSERT INTO config.index_normalizer (name, description, func, param_count) VALUES (
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0041.data.fix-in-db-date-range-norm.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0041.data.fix-in-db-date-range-norm.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0041.data.fix-in-db-date-range-norm.sql 2009-10-21 14:59:25 UTC (rev 14526)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0041'); -- miker
+
+UPDATE config.index_normalizer SET param_count = 0 WHERE func = 'split_date_range';
+
+COMMIT;
+
More information about the open-ils-commits
mailing list