Rename DB Upgrade scripts collab/dyrcona/lp1902937-quipu_renewal_wip
authorJason Stephenson <jstephenson@cwmars.org>
Tue, 29 Nov 2022 20:22:05 +0000 (15:22 -0500)
committerJason Stephenson <jstephenson@cwmars.org>
Tue, 29 Nov 2022 20:22:05 +0000 (15:22 -0500)
Rename the Quipu standing penalty and erenew pgt column upgrade
scripts so that the order that they should be run is obvious from the
filenames.

Signed-off-by: Jason Stephenson <jstephenson@cwmars.org>
Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.erenew_column_pgt.sql [deleted file]
Open-ILS/src/sql/Pg/upgrade/YYYY.quipu-standing-penalty.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/ZZZZ.schema.erenew_column_pgt.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql
deleted file mode 100644 (file)
index e7d82fd..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-BEGIN;
-
--- ID has to be under 100 in order to prevent it from appearing as a dropdown in the patron editor.
-
-INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) 
-VALUES (90, 'PATRON_TEMP_RENEWAL',
-       'Patron was given a 30-day temporary account renewal. 
-       Please archive this message after the account is fully renewed.', TRUE, 0
-       );
-
-COMMIT;
\ No newline at end of file
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.erenew_column_pgt.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.erenew_column_pgt.sql
deleted file mode 100644 (file)
index c047b32..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-BEGIN;
-
-ALTER TABLE permission.grp_tree ADD COLUMN erenew BOOL NOT NULL DEFAULT FALSE;
-
-COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.quipu-standing-penalty.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.quipu-standing-penalty.sql
new file mode 100644 (file)
index 0000000..e7d82fd
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+
+-- ID has to be under 100 in order to prevent it from appearing as a dropdown in the patron editor.
+
+INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) 
+VALUES (90, 'PATRON_TEMP_RENEWAL',
+       'Patron was given a 30-day temporary account renewal. 
+       Please archive this message after the account is fully renewed.', TRUE, 0
+       );
+
+COMMIT;
\ No newline at end of file
diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.schema.erenew_column_pgt.sql b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.schema.erenew_column_pgt.sql
new file mode 100644 (file)
index 0000000..c047b32
--- /dev/null
@@ -0,0 +1,5 @@
+BEGIN;
+
+ALTER TABLE permission.grp_tree ADD COLUMN erenew BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;