From: G. Richardson Date: Thu, 28 Jul 2016 11:06:10 +0000 (+0200) Subject: Rose Dateien für Tabelle user_preferences X-Git-Tag: release-3.5.4~2171 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=98625cb1c671bf300ce92c1b693a8881af29e659;p=kivitendo-erp.git Rose Dateien für Tabelle user_preferences --- diff --git a/SL/DB/Helper/ALL.pm b/SL/DB/Helper/ALL.pm index 23cf4ac5a..da11bb47f 100644 --- a/SL/DB/Helper/ALL.pm +++ b/SL/DB/Helper/ALL.pm @@ -121,6 +121,7 @@ use SL::DB::Translation; use SL::DB::TriggerInformation; use SL::DB::Unit; use SL::DB::UnitsLanguage; +use SL::DB::UserPreference; use SL::DB::VC; use SL::DB::Vendor; use SL::DB::Warehouse; diff --git a/SL/DB/Helper/Mappings.pm b/SL/DB/Helper/Mappings.pm index 2a074dd4d..738a93c90 100644 --- a/SL/DB/Helper/Mappings.pm +++ b/SL/DB/Helper/Mappings.pm @@ -201,6 +201,7 @@ my %kivitendo_package_names = ( trigger_information => 'trigger_information', units => 'unit', units_language => 'units_language', + user_preferences => 'user_preference', vendor => 'vendor', warehouse => 'warehouse', ); diff --git a/SL/DB/Manager/UserPreference.pm b/SL/DB/Manager/UserPreference.pm new file mode 100644 index 000000000..3ad81e5d3 --- /dev/null +++ b/SL/DB/Manager/UserPreference.pm @@ -0,0 +1,14 @@ +# This file has been auto-generated only because it didn't exist. +# Feel free to modify it at will; it will not be overwritten automatically. + +package SL::DB::Manager::UserPreference; + +use strict; + +use parent qw(SL::DB::Helper::Manager); + +sub object_class { 'SL::DB::UserPreference' } + +__PACKAGE__->make_manager_methods; + +1; diff --git a/SL/DB/MetaSetup/UserPreference.pm b/SL/DB/MetaSetup/UserPreference.pm new file mode 100644 index 000000000..9c075d1d7 --- /dev/null +++ b/SL/DB/MetaSetup/UserPreference.pm @@ -0,0 +1,25 @@ +# This file has been auto-generated. Do not modify it; it will be overwritten +# by rose_auto_create_model.pl automatically. +package SL::DB::UserPreference; + +use strict; + +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('user_preferences'); + +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + key => { type => 'text', not_null => 1 }, + login => { type => 'text', not_null => 1 }, + namespace => { type => 'text', not_null => 1 }, + value => { type => 'text' }, + version => { type => 'numeric', precision => 15, scale => 5 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->unique_keys([ 'login', 'namespace', 'version', 'key' ]); + +1; +; diff --git a/SL/DB/UserPreference.pm b/SL/DB/UserPreference.pm new file mode 100644 index 000000000..c7a7a35b8 --- /dev/null +++ b/SL/DB/UserPreference.pm @@ -0,0 +1,13 @@ +# This file has been auto-generated only because it didn't exist. +# Feel free to modify it at will; it will not be overwritten automatically. + +package SL::DB::UserPreference; + +use strict; + +use SL::DB::MetaSetup::UserPreference; +use SL::DB::Manager::UserPreference; + +__PACKAGE__->meta->initialize; + +1;