From: Bernd Bleßmann Date: Fri, 25 Jan 2019 10:09:33 +0000 (+0100) Subject: DisplayableNamePrefs: DB-Upgrade-Skript um defaults zu setzen X-Git-Tag: release-3.5.4~156 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1fad56266ce2db6b0f6c1c61c333b5b7f27d0d96;p=kivitendo-erp.git DisplayableNamePrefs: DB-Upgrade-Skript um defaults zu setzen --- diff --git a/sql/Pg-upgrade2/displayable_name_prefs_defaults.sql b/sql/Pg-upgrade2/displayable_name_prefs_defaults.sql new file mode 100644 index 000000000..542b36b2a --- /dev/null +++ b/sql/Pg-upgrade2/displayable_name_prefs_defaults.sql @@ -0,0 +1,13 @@ +-- @tag: displayable_name_prefs_defaults +-- @description: Setzen der Default-Einstellungen für einstellbare Picker-Anzeigen +-- @depends: user_preferences + +INSERT INTO user_preferences (login, namespace, version, key, value) + SELECT '#default#','DisplayableName','0.00000','SL::DB::Customer','<%customernumber%> <%name%>' + WHERE NOT EXISTS (SELECT id FROM user_preferences WHERE login LIKE '#default#' AND namespace LIKE 'DisplayableName' AND version = 0.00000 AND key LIKE 'SL::DB::Customer'); +INSERT INTO user_preferences (login, namespace, version, key, value) + SELECT '#default#','DisplayableName','0.00000','SL::DB::Vendor','<%vendornumber%> <%name%>' + WHERE NOT EXISTS (SELECT id FROM user_preferences WHERE login LIKE '#default#' AND namespace LIKE 'DisplayableName' AND version = 0.00000 AND key LIKE 'SL::DB::Vendor'); +INSERT INTO user_preferences (login, namespace, version, key, value) + SELECT '#default#','DisplayableName','0.00000','SL::DB::Part','<%partnumber%> <%description%>' + WHERE NOT EXISTS (SELECT id FROM user_preferences WHERE login LIKE '#default#' AND namespace LIKE 'DisplayableName' AND version = 0.00000 AND key LIKE 'SL::DB::Part');