LP#1479953: Stamping Upgrade Script
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 6 Aug 2015 15:42:39 +0000 (11:42 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 6 Aug 2015 15:44:26 +0000 (11:44 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0922.index.queued_record.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.index.queued_record.sql [deleted file]

index d08026e..829b231 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 ('0921', :eg_version); -- dyrcona/dbwells/remingtron/kmlussier/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0922', :eg_version); -- jeffdavis/kmlussier/dyrcona
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0922.index.queued_record.sql b/Open-ILS/src/sql/Pg/upgrade/0922.index.queued_record.sql
new file mode 100644 (file)
index 0000000..d727b0a
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+/* LP#1479953: Adding indexes to foreign key references to
+ * vandelay.queued_bib_record will speed up deletions of vqbr records (thereby
+ * speeding up vandelay.bib_queue deletions).
+ */
+
+SELECT evergreen.upgrade_deps_block_check('0922', :eg_version);
+
+CREATE INDEX acq_lineitem_history_queued_record_idx ON acq.acq_lineitem_history (queued_record);
+CREATE INDEX li_queued_record_idx ON acq.lineitem (queued_record);
+CREATE INDEX bib_match_queued_record_idx ON vandelay.bib_match (queued_record);
+CREATE INDEX import_item_record_idx ON vandelay.import_item (record);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.index.queued_record.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.index.queued_record.sql
deleted file mode 100644 (file)
index a1fb2c2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN;
-
-/* LP#1479953: Adding indexes to foreign key references to
- * vandelay.queued_bib_record will speed up deletions of vqbr records (thereby
- * speeding up vandelay.bib_queue deletions).
- */
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-CREATE INDEX acq_lineitem_history_queued_record_idx ON acq.acq_lineitem_history (queued_record);
-CREATE INDEX li_queued_record_idx ON acq.lineitem (queued_record);
-CREATE INDEX bib_match_queued_record_idx ON vandelay.bib_match (queued_record);
-CREATE INDEX import_item_record_idx ON vandelay.import_item (record);
-
-COMMIT;