From: Jason Stephenson Date: Tue, 29 Nov 2022 20:22:05 +0000 (-0500) Subject: Rename DB Upgrade scripts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e111ad4e9ce2665de1aea168a5b2664a0458ca1c;p=working%2FEvergreen.git Rename DB Upgrade scripts 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 --- 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 index e7d82fd51b..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX-quipu-standing_penalty.sql +++ /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 index c047b32899..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.erenew_column_pgt.sql +++ /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 index 0000000000..e7d82fd51b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/YYYY.quipu-standing-penalty.sql @@ -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 index 0000000000..c047b32899 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.schema.erenew_column_pgt.sql @@ -0,0 +1,5 @@ +BEGIN; + +ALTER TABLE permission.grp_tree ADD COLUMN erenew BOOL NOT NULL DEFAULT FALSE; + +COMMIT;