LP#1972738: stamp schema update
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 27 Mar 2023 19:53:31 +0000 (15:53 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 27 Mar 2023 19:55:49 +0000 (15:55 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1362.schema.add-hopeless-date-index.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-hopeless-date-index.sql [deleted file]

index 41d6489..fdcfeab 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 ('1361', :eg_version); -- miker / Dyrcona / gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1362', :eg_version); -- Dyrcona / gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1362.schema.add-hopeless-date-index.sql b/Open-ILS/src/sql/Pg/upgrade/1362.schema.add-hopeless-date-index.sql
new file mode 100644 (file)
index 0000000..9fd49fd
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1362', :eg_version);
+
+CREATE INDEX hold_request_hopeless_date_idx ON action.hold_request (hopeless_date);
+
+COMMIT;
+
+ANALYZE action.hold_request;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-hopeless-date-index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.add-hopeless-date-index.sql
deleted file mode 100644 (file)
index 7ed0399..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-CREATE INDEX hold_request_hopeless_date_idx ON action.hold_request (hopeless_date);
-
-COMMIT;
-
-ANALYZE action.hold_request;