LP#1922567: stamp schema update
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 4 Oct 2021 14:52:35 +0000 (10:52 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 4 Oct 2021 14:52:35 +0000 (10:52 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1303.schema.authority-full-rec-value-index.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.authority-full-rec-value-index.sql [deleted file]

index 8706573..dbb1d61 100644 (file)
@@ -92,7 +92,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 ('1302', :eg_version); -- slink / dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1303', :eg_version); -- Dyrcona / jweston / gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1303.schema.authority-full-rec-value-index.sql b/Open-ILS/src/sql/Pg/upgrade/1303.schema.authority-full-rec-value-index.sql
new file mode 100644 (file)
index 0000000..121c66b
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1303', :eg_version);
+
+DROP INDEX authority.authority_full_rec_value_index;
+CREATE INDEX authority_full_rec_value_index ON authority.full_rec (SUBSTRING(value FOR 1024));
+
+DROP INDEX authority.authority_full_rec_value_tpo_index;
+CREATE INDEX authority_full_rec_value_tpo_index ON authority.full_rec (SUBSTRING(value FOR 1024) text_pattern_ops);
+
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.authority-full-rec-value-index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.authority-full-rec-value-index.sql
deleted file mode 100644 (file)
index 5fa36f2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-DROP INDEX authority.authority_full_rec_value_index;
-CREATE INDEX authority_full_rec_value_index ON authority.full_rec (SUBSTRING(value FOR 1024));
-
-DROP INDEX authority.authority_full_rec_value_tpo_index;
-CREATE INDEX authority_full_rec_value_tpo_index ON authority.full_rec (SUBSTRING(value FOR 1024) text_pattern_ops);
-
-
-COMMIT;