LP#1737019: stamp schema update
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 21 Sep 2021 14:29:30 +0000 (10:29 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 21 Sep 2021 14:29:30 +0000 (10:29 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql [deleted file]

index 6c0be70..55bc324 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 ('1289', :eg_version); -- rhamby / rfrasur / gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1290', :eg_version); -- tlittle / lstratton / gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql b/Open-ILS/src/sql/Pg/upgrade/1290.schema.acq-active-flag.sql
new file mode 100644 (file)
index 0000000..394addf
--- /dev/null
@@ -0,0 +1,14 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1290', :eg_version);
+
+-- Add an active flag column
+
+ALTER TABLE acq.funding_source ADD COLUMN active BOOL;
+
+UPDATE acq.funding_source SET active = 't';
+
+ALTER TABLE acq.funding_source ALTER COLUMN active SET DEFAULT TRUE;
+ALTER TABLE acq.funding_source ALTER COLUMN active SET NOT NULL;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-active-flag.sql
deleted file mode 100644 (file)
index fce1555..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
-
--- Add an active flag column
-
-ALTER TABLE acq.funding_source ADD COLUMN active BOOL;
-
-UPDATE acq.funding_source SET active = 't';
-
-ALTER TABLE acq.funding_source ALTER COLUMN active SET DEFAULT TRUE;
-ALTER TABLE acq.funding_source ALTER COLUMN active SET NOT NULL;
-
-COMMIT;