X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/sql/Pg-upgrade2/displayable_name_prefs_defaults.sql

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');
