LP1908440: Stamp Upgrade Script master
authorJason Boyer <JBoyer@EquinoxInitiative.org>
Tue, 11 May 2021 23:42:31 +0000 (19:42 -0400)
committerJason Boyer <JBoyer@EquinoxInitiative.org>
Tue, 11 May 2021 23:46:47 +0000 (19:46 -0400)
Signed-off-by: Jason Boyer <JBoyer@EquinoxInitiative.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1260.data.lp1908440.photo_url_editing.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.au_photo_url.sql [deleted file]

index a7dfd74..1d0774c 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 ('1259', :eg_version); -- mmorgan/JBoyer/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1260', :eg_version); -- rhamby/serickson/JBoyer
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1260.data.lp1908440.photo_url_editing.sql b/Open-ILS/src/sql/Pg/upgrade/1260.data.lp1908440.photo_url_editing.sql
new file mode 100644 (file)
index 0000000..9ac284d
--- /dev/null
@@ -0,0 +1,84 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1260', :eg_version);
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.au.photo_url.require',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.require',
+            'Require Photo URL field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.require',
+            'The Photo URL field will be required on the patron registration screen.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.au.photo_url.show',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.show',
+            'Show Photo URL field on patron registration',
+            'coust',
+            'label'
+        ),
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.show',
+            'The Photo URL field will be shown on the patron registration screen. Showing a field makes it appear with required fields even when not required. If the field is required this setting is ignored.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT into config.org_unit_setting_type
+    (name, grp, label, description, datatype)
+    VALUES (
+        'ui.patron.edit.au.photo_url.suggest',
+        'gui',
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.suggest',
+            'Suggest Photo URL field on patron registration',
+            'coust',
+            'label'
+        ),
+
+        oils_i18n_gettext(
+            'ui.patron.edit.au.photo_url.suggest',
+            'The Photo URL field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.',
+            'coust',
+            'description'
+        ),
+        'bool'
+    );
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+( 632, 'UPDATE_USER_PHOTO_URL', oils_i18n_gettext( 632,
+   'Update the user photo url field in patron registration and editor', 'ppl', 'description' ))
+;
+
+INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
+        SELECT
+                pgt.id, perm.id, aout.depth, FALSE
+        FROM
+                permission.grp_tree pgt,
+                permission.perm_list perm,
+                actor.org_unit_type aout
+        WHERE
+                pgt.name = 'Circulators' AND
+                aout.name = 'System' AND
+                perm.code = 'UPDATE_USER_PHOTO_URL'
+;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.au_photo_url.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.au_photo_url.sql
deleted file mode 100644 (file)
index b631e1f..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES (
-        'ui.patron.edit.au.photo_url.require',
-        'gui',
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.require',
-            'Require Photo URL field on patron registration',
-            'coust',
-            'label'
-        ),
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.require',
-            'The Photo URL field will be required on the patron registration screen.',
-            'coust',
-            'description'
-        ),
-        'bool'
-    );
-
-INSERT into config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES (
-        'ui.patron.edit.au.photo_url.show',
-        'gui',
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.show',
-            'Show Photo URL field on patron registration',
-            'coust',
-            'label'
-        ),
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.show',
-            'The Photo URL field will be shown on the patron registration screen. Showing a field makes it appear with required fields even when not required. If the field is required this setting is ignored.',
-            'coust',
-            'description'
-        ),
-        'bool'
-    );
-
-INSERT into config.org_unit_setting_type
-    (name, grp, label, description, datatype)
-    VALUES (
-        'ui.patron.edit.au.photo_url.suggest',
-        'gui',
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.suggest',
-            'Suggest Photo URL field on patron registration',
-            'coust',
-            'label'
-        ),
-
-        oils_i18n_gettext(
-            'ui.patron.edit.au.photo_url.suggest',
-            'The Photo URL field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.',
-            'coust',
-            'description'
-        ),
-        'bool'
-    );
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES
-( 632, 'UPDATE_USER_PHOTO_URL', oils_i18n_gettext( 632,
-   'Update the user photo url field in patron registration and editor', 'ppl', 'description' ))
-;
-
-INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
-        SELECT
-                pgt.id, perm.id, aout.depth, FALSE
-        FROM
-                permission.grp_tree pgt,
-                permission.perm_list perm,
-                actor.org_unit_type aout
-        WHERE
-                pgt.name = 'Circulators' AND
-                aout.name = 'System' AND
-                perm.code = 'UPDATE_USER_PHOTO_URL'
-;
-
-COMMIT;