LP#1447168 Stamping upgrade script for index on ash record
authorDan Wells <dbw2@calvin.edu>
Wed, 10 Jun 2015 18:29:27 +0000 (14:29 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 10 Jun 2015 18:29:27 +0000 (14:29 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql [deleted file]

index e434596..a0a4a4e 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 ('0917', :eg_version); -- gmcharlt/dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0918', :eg_version); -- gmcharlt/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql b/Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql
new file mode 100644 (file)
index 0000000..8c92f26
--- /dev/null
@@ -0,0 +1,9 @@
+-- index authority.simple_heading.record so that reingesting
+-- authority records does not require a sequential scan of ash
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0918', :eg_version);
+
+CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql
deleted file mode 100644 (file)
index cd0aa25..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
--- index authority.simple_heading.record so that reingesting
--- authority records does not require a sequential scan of ash
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);
-
-COMMIT;