From: phasefx Date: Tue, 19 Apr 2011 15:53:44 +0000 (+0000) Subject: lock in upgrade script version #, tweak org setting labels and descriptions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=547a5c3ee868d4f3b0ddabd4905b337cddb8e6cf;p=evergreen%2Ftadl.git lock in upgrade script version #, tweak org setting labels and descriptions Signed-off-by: Jason Etheridge git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20210 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 2085135a0b..e2a36bb0f5 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -57,7 +57,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0521'); -- dbs +INSERT INTO config.upgrade_log (version) VALUES ('0522'); -- tsbere/phasefx CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index c60998f00f..31da63442a 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1883,13 +1883,13 @@ INSERT into config.org_unit_setting_type 'bool'), ( 'ui.general.button_bar', - oils_i18n_gettext('ui.general.button_bar', 'Button bar', 'coust', 'label'), - oils_i18n_gettext('ui.general.button_bar', 'Button bar', 'coust', 'description'), + oils_i18n_gettext('ui.general.button_bar', 'GUI: Button bar', 'coust', 'label'), + oils_i18n_gettext('ui.general.button_bar', 'Set to "circ" or "cat" for stock circulator or cataloger toolbar, respectively.', 'coust', 'description'), 'string'), ( 'ui.general.hotkeyset', - oils_i18n_gettext('ui.general.hotkeyset', 'Default Hotkeyset', 'coust', 'label'), - oils_i18n_gettext('ui.general.hotkeyset', 'Default Hotkeyset for clients (filename without the .keyset)', 'coust', 'description'), + oils_i18n_gettext('ui.general.hotkeyset', 'GUI: Default Hotkeyset', 'coust', 'label'), + oils_i18n_gettext('ui.general.hotkeyset', 'Default Hotkeyset for clients (filename without the .keyset). Examples: Default, Minimal, and None', 'coust', 'description'), 'string'), ( 'circ.hold_shelf_status_delay', diff --git a/Open-ILS/src/sql/Pg/upgrade/0522.client_menus.sql b/Open-ILS/src/sql/Pg/upgrade/0522.client_menus.sql new file mode 100644 index 0000000000..f62cdd73a9 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0522.client_menus.sql @@ -0,0 +1,14 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0522'); -- tsbere/phasefx + +UPDATE config.org_unit_setting_type SET datatype = 'string' WHERE name = 'ui.general.button_bar'; + +INSERT INTO config.org_unit_setting_type ( name, label, description, datatype) VALUES ('ui.general.hotkeyset', 'GUI: Default Hotkeyset', 'Default Hotkeyset for clients (filename without the .keyset). Examples: Default, Minimal, and None', 'string'); + +UPDATE actor.org_unit_setting SET value='"circ"' WHERE name = 'ui.general.button_bar' AND value='true'; + +UPDATE actor.org_unit_setting SET value='"none"' WHERE name = 'ui.general.button_bar' AND value='false'; + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.client_menus.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.client_menus.sql deleted file mode 100644 index fd642c15bf..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.client_menus.sql +++ /dev/null @@ -1,14 +0,0 @@ -BEGIN; - -INSERT INTO config.upgrade_log (version) VALUES ('XXXX'); - -UPDATE config.org_unit_setting_type SET datatype = 'string' WHERE name = 'ui.general.button_bar'; - -INSERT INTO config.org_unit_setting_type ( name, label, description, datatype) VALUES ('ui.general.hotkeyset', 'Default Hotkeyset', 'Default Hotkeyset for clients (filename without the .keyset)', 'string'); - -UPDATE actor.org_unit_setting SET value='"circ"' WHERE name = 'ui.general.button_bar' AND value='true'; - -UPDATE actor.org_unit_setting SET value='"none"' WHERE name = 'ui.general.button_bar' AND value='false'; - -COMMIT; -