LP#1455606: Stamping upgrade script for removing unused selfcheck password setting
authorBen Shum <ben@evergreener.net>
Sun, 12 Feb 2017 00:04:59 +0000 (19:04 -0500)
committerBen Shum <ben@evergreener.net>
Sun, 12 Feb 2017 00:04:59 +0000 (19:04 -0500)
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1010.remove_unused_self_checkout_setting.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql [deleted file]

index e0e88fe..ed66ee3 100644 (file)
@@ -91,7 +91,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 ('1009', :eg_version); -- csharp/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1010', :eg_version); -- csharp/jeff/bshum
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1010.remove_unused_self_checkout_setting.sql b/Open-ILS/src/sql/Pg/upgrade/1010.remove_unused_self_checkout_setting.sql
new file mode 100644 (file)
index 0000000..9c474c4
--- /dev/null
@@ -0,0 +1,19 @@
+-- remove unused org unit setting for self checkout interface
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1010', :eg_version);
+
+DELETE FROM actor.org_unit_setting WHERE name = 'circ.selfcheck.require_patron_password';
+
+DELETE FROM config.org_unit_setting_type WHERE name = 'circ.selfcheck.require_patron_password';
+
+DELETE FROM config.org_unit_setting_type_log WHERE field_name = 'circ.selfcheck.require_patron_password';
+
+DELETE FROM permission.usr_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
+
+DELETE FROM permission.grp_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
+
+DELETE FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql
deleted file mode 100644 (file)
index ac6bbe2..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
--- remove unused org unit setting for self checkout interface
-
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-DELETE FROM actor.org_unit_setting WHERE name = 'circ.selfcheck.require_patron_password';
-
-DELETE FROM config.org_unit_setting_type WHERE name = 'circ.selfcheck.require_patron_password';
-
-DELETE FROM config.org_unit_setting_type_log WHERE field_name = 'circ.selfcheck.require_patron_password';
-
-DELETE FROM permission.usr_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
-
-DELETE FROM permission.grp_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
-
-DELETE FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password';
-
-COMMIT;