LP#1389403: Stamping upgrade script for normalizer detection to call number browse
authorBen Shum <bshum@biblio.org>
Tue, 16 Dec 2014 19:54:28 +0000 (14:54 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 16 Dec 2014 19:54:28 +0000 (14:54 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0899.function.cn_normalizers_immutable.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.function.cn_normalizers_immutable.sql [deleted file]

index e674182..c60c5f6 100644 (file)
@@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0898', :eg_version); -- miker/Dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0899', :eg_version); -- dbwells/kmlussier/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0899.function.cn_normalizers_immutable.sql b/Open-ILS/src/sql/Pg/upgrade/0899.function.cn_normalizers_immutable.sql
new file mode 100644 (file)
index 0000000..77e7e9c
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0899', :eg_version);
+
+ALTER FUNCTION asset.label_normalizer_generic(TEXT) IMMUTABLE;
+ALTER FUNCTION asset.label_normalizer_dewey(TEXT) IMMUTABLE;
+ALTER FUNCTION asset.label_normalizer_lc(TEXT) IMMUTABLE;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.cn_normalizers_immutable.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.function.cn_normalizers_immutable.sql
deleted file mode 100644 (file)
index 60618da..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER FUNCTION asset.label_normalizer_generic(TEXT) IMMUTABLE;
-ALTER FUNCTION asset.label_normalizer_dewey(TEXT) IMMUTABLE;
-ALTER FUNCTION asset.label_normalizer_lc(TEXT) IMMUTABLE;
-
-COMMIT;