From: Chris Sharp Date: Wed, 7 Oct 2020 18:54:41 +0000 (-0400) Subject: LP1893463: stamp upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7c0d5eeb55823e8df2f6ad88b3157d7f8f442f29;p=evergreen%2Ftadl.git LP1893463: stamp upgrade script Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 6cf8a13f3a..d52b1c9546 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('1240', :eg_version); -- jeffdavis/csharp +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1241', :eg_version); -- JBoyer/csharp CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1241.schema.reporter_schedule_uniqueness.sql b/Open-ILS/src/sql/Pg/upgrade/1241.schema.reporter_schedule_uniqueness.sql new file mode 100644 index 0000000000..0d9e4b757a --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1241.schema.reporter_schedule_uniqueness.sql @@ -0,0 +1,9 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1241', :eg_version); + +-- Explicitly supply the name because it is referenced in clark-kent.pl +CREATE UNIQUE INDEX rpt_sched_recurrence_once_idx ON reporter.schedule (report,folder,runner,run_time,email); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql deleted file mode 100644 index 1a2b22fa44..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - --- Explicitly supply the name because it is referenced in clark-kent.pl -CREATE UNIQUE INDEX rpt_sched_recurrence_once_idx ON reporter.schedule (report,folder,runner,run_time,email); - -COMMIT; -