LP#1811710: stamp schema update
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 15 Sep 2020 16:10:02 +0000 (12:10 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 15 Sep 2020 16:10:02 +0000 (12:10 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql [deleted file]

index 2978fe8..351a9a4 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 ('1232', :eg_version); -- khuckins/sandbergja/JBoyer/mmorgan/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1234', :eg_version); -- phasefx/gmcharlt/terranm/charp
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/1233.data.wide_holds-workstation-settings.sql
new file mode 100644 (file)
index 0000000..7a53e96
--- /dev/null
@@ -0,0 +1,16 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1233', :eg_version);
+
+INSERT into config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.hopeless.wide_holds', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.hopeless.wide_holds',
+        'Grid Config: hopeless.wide_holds',
+        'cwst', 'label'
+    )
+);
+
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql b/Open-ILS/src/sql/Pg/upgrade/1234.schema.hopeless_holds.sql
new file mode 100644 (file)
index 0000000..b06e4a5
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1234', :eg_version);
+
+ALTER TABLE config.copy_status ADD COLUMN hopeless_prone BOOL NOT NULL DEFAULT FALSE; -- 002.schema.config.sql
+ALTER TABLE action.hold_request ADD COLUMN hopeless_date TIMESTAMP WITH TIME ZONE; -- 090.schema.action.sql
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql
deleted file mode 100644 (file)
index 717001d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
-    'eg.grid.hopeless.wide_holds', 'gui', 'object',
-    oils_i18n_gettext(
-        'eg.grid.hopeless.wide_holds',
-        'Grid Config: hopeless.wide_holds',
-        'cwst', 'label'
-    )
-);
-
-
-COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.hopeless_holds.sql
deleted file mode 100644 (file)
index 7205a71..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('YYYY', :eg_version);
-
-ALTER TABLE config.copy_status ADD COLUMN hopeless_prone BOOL NOT NULL DEFAULT FALSE; -- 002.schema.config.sql
-ALTER TABLE action.hold_request ADD COLUMN hopeless_date TIMESTAMP WITH TIME ZONE; -- 090.schema.action.sql
-
-COMMIT;