LP#1413660: Stamping upgrade script to change z3950 function
authorBen Shum <bshum@biblio.org>
Tue, 3 Feb 2015 21:12:14 +0000 (16:12 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 3 Feb 2015 21:12:14 +0000 (16:12 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql [deleted file]

index 4405cfc..2e7d76b 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 ('0905', :eg_version); -- gmcharlt/csharp/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0906', :eg_version); -- berick/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql b/Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql
new file mode 100644 (file)
index 0000000..f91104c
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0906', :eg_version);
+
+ALTER FUNCTION evergreen.z3950_attr_name_is_valid (TEXT) STABLE;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql
deleted file mode 100644 (file)
index 31a44d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-BEGIN;
-
-ALTER FUNCTION evergreen.z3950_attr_name_is_valid (TEXT) STABLE;
-
-COMMIT;