Stamping upgrade script for optional combined search by class
authorBen Shum <bshum@biblio.org>
Thu, 18 Apr 2013 17:45:54 +0000 (13:45 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 18 Apr 2013 17:46:16 +0000 (13:46 -0400)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0790.schema.optional_combined_search.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.optional_combined_search.sql [deleted file]

index f10ad3d..55b6ad5 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 ('0789', :eg_version); -- miker/dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0790', :eg_version); -- miker/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0790.schema.optional_combined_search.sql b/Open-ILS/src/sql/Pg/upgrade/0790.schema.optional_combined_search.sql
new file mode 100644 (file)
index 0000000..79d02af
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0790', :eg_version);
+
+ALTER TABLE config.metabib_class ADD COLUMN combined BOOL NOT NULL DEFAULT FALSE;
+UPDATE config.metabib_class SET combined = TRUE WHERE name = 'subject';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.optional_combined_search.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.optional_combined_search.sql
deleted file mode 100644 (file)
index 2cab404..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-
-ALTER TABLE config.metabib_class ADD COLUMN combined BOOL NOT NULL DEFAULT FALSE;
-UPDATE config.metabib_class SET combined = TRUE WHERE name = 'subject';
-