X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCustomVariableConfig.pm;h=684d2291706789bcf5cf683636cfb1cf732fa518;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=5ee01c19dc9ba9723cca49f8ac14144ae5c1cf47;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CustomVariableConfig.pm b/SL/DB/MetaSetup/CustomVariableConfig.pm index 5ee01c19d..684d22917 100644 --- a/SL/DB/MetaSetup/CustomVariableConfig.pm +++ b/SL/DB/MetaSetup/CustomVariableConfig.pm @@ -4,32 +4,31 @@ package SL::DB::CustomVariableConfig; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'custom_variable_configs', +__PACKAGE__->meta->table('custom_variable_configs'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' }, - name => { type => 'text' }, - description => { type => 'text' }, - type => { type => 'varchar', length => 20 }, - module => { type => 'varchar', length => 20 }, - default_value => { type => 'text' }, - options => { type => 'text' }, - searchable => { type => 'boolean' }, - includeable => { type => 'boolean' }, - included_by_default => { type => 'boolean' }, - sortkey => { type => 'integer' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - flags => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + default_value => { type => 'text' }, + description => { type => 'text', not_null => 1 }, + first_tab => { type => 'boolean', default => 'false', not_null => 1 }, + flags => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' }, + includeable => { type => 'boolean', not_null => 1 }, + included_by_default => { type => 'boolean', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + module => { type => 'text', not_null => 1 }, + mtime => { type => 'timestamp' }, + name => { type => 'text', not_null => 1 }, + options => { type => 'text' }, + searchable => { type => 'boolean', not_null => 1 }, + sortkey => { type => 'integer', not_null => 1 }, + type => { type => 'text', not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;