LP1223903 - Stamping upgrade script for new authority_record_entry indexes
authorBen Shum <bshum@biblio.org>
Wed, 19 Feb 2014 19:22:37 +0000 (14:22 -0500)
committerBen Shum <bshum@biblio.org>
Wed, 19 Feb 2014 19:35:05 +0000 (14:35 -0500)
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/upgrade/0861.index.authority_record_entry.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.index.authority_record_entry.sql [deleted file]

diff --git a/Open-ILS/src/sql/Pg/upgrade/0861.index.authority_record_entry.sql b/Open-ILS/src/sql/Pg/upgrade/0861.index.authority_record_entry.sql
new file mode 100644 (file)
index 0000000..b94a54a
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0861', :eg_version);
+
+CREATE INDEX authority_record_entry_create_date_idx ON authority.record_entry ( create_date );
+CREATE INDEX authority_record_entry_edit_date_idx ON authority.record_entry ( edit_date );
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.index.authority_record_entry.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.index.authority_record_entry.sql
deleted file mode 100644 (file)
index 1c8e03c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-CREATE INDEX authority_record_entry_create_date_idx ON authority.record_entry ( create_date );
-CREATE INDEX authority_record_entry_edit_date_idx ON authority.record_entry ( edit_date );