[open-ils-commits] r15625 - in trunk/Open-ILS/src/sql/Pg: . upgrade (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 23 13:17:53 EST 2010
Author: phasefx
Date: 2010-02-23 13:17:49 -0500 (Tue, 23 Feb 2010)
New Revision: 15625
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0169.data.org-setting-require-staff-initials.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
upgrade script for ui.staff.require_initials
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-23 17:03:15 UTC (rev 15624)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-02-23 18:17:49 UTC (rev 15625)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0168'); -- miker
+INSERT INTO config.upgrade_log (version) VALUES ('0169'); -- phasefx
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0169.data.org-setting-require-staff-initials.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0169.data.org-setting-require-staff-initials.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0169.data.org-setting-require-staff-initials.sql 2010-02-23 18:17:49 UTC (rev 15625)
@@ -0,0 +1,33 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0169'); -- phasefx
+
+-- Effective undoes 0117.data.org-setting-notes-require-initials.sql
+-- At the time of this script, these shouldn't be in any production systems, so I'm removing, not "upgrading".
+DELETE FROM actor.org_unit_setting WHERE name IN (
+ 'ui.circ_and_cat.notes.require_initials',
+ 'ui.circ.standing_penalty.require_initials'
+);
+DELETE FROM config.org_unit_setting_type WHERE name IN (
+ 'ui.circ_and_cat.notes.require_initials',
+ 'ui.circ.standing_penalty.require_initials'
+);
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+ SELECT DISTINCT
+ 'ui.staff.require_initials',
+ oils_i18n_gettext(
+ 'ui.staff.require_initials',
+ 'GUI: Require staff initials for entry/edit of item/patron/penalty notes/messages.',
+ 'coust',
+ 'label'),
+ oils_i18n_gettext(
+ 'ui.staff.require_initials',
+ 'Appends staff initials and edit date into note content.',
+ 'coust',
+ 'description'),
+ 'bool'
+ FROM config.org_unit_setting_type -- Since this script is way after the setting was introduced, being careful
+ WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'ui.staff.require_initials');
+
+COMMIT;
More information about the open-ils-commits
mailing list