From: Jason Stephenson Date: Thu, 6 Aug 2015 15:42:39 +0000 (-0400) Subject: LP#1479953: Stamping Upgrade Script X-Git-Tag: sprint4-merge-nov22~1281 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=768680b93d84f85ada96c07593a1b9f315ec8099;p=working%2FEvergreen.git LP#1479953: Stamping Upgrade Script Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index d08026ef8a..829b231d7e 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 index 0000000000..d727b0a486 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0922.index.queued_record.sql @@ -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 index a1fb2c2a14..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.index.queued_record.sql +++ /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;