Stamping upgrade script for 0845: browse pivots should be stable.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 29 Oct 2013 19:45:18 +0000 (15:45 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 29 Oct 2013 19:45:18 +0000 (15:45 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0845.schema.browse_pivots_stable.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.browse_pivots_stable.sql [deleted file]

index b8cbf46..790e394 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 ('0844', :eg_version); -- dbwells/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0845', :eg_version); -- dbwells/csharp
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0845.schema.browse_pivots_stable.sql b/Open-ILS/src/sql/Pg/upgrade/0845.schema.browse_pivots_stable.sql
new file mode 100644 (file)
index 0000000..d1e7304
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0845', :eg_version);
+
+ALTER FUNCTION metabib.browse_pivot (integer[], text) STABLE;
+ALTER FUNCTION metabib.browse_bib_pivot (integer[], text) STABLE;
+ALTER FUNCTION metabib.browse_authority_pivot (integer[], text) STABLE;
+ALTER FUNCTION metabib.browse_authority_refs_pivot (integer[], text) STABLE;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.browse_pivots_stable.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.browse_pivots_stable.sql
deleted file mode 100644 (file)
index 3eaa44c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-BEGIN;
-
--- check whether patch can be applied
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER FUNCTION metabib.browse_pivot (integer[], text) STABLE;
-ALTER FUNCTION metabib.browse_bib_pivot (integer[], text) STABLE;
-ALTER FUNCTION metabib.browse_authority_pivot (integer[], text) STABLE;
-ALTER FUNCTION metabib.browse_authority_refs_pivot (integer[], text) STABLE;
-
-COMMIT;