X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCustomVariableValidity.pm;h=6b9dcd8451be27ee3665ad3f72174e7cbca82a8e;hb=692cdaa86a5808a2bd7c65a51256a43a9eb109d3;hp=25876d74828fcd2d83b91619ec02423097a6097d;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CustomVariableValidity.pm b/SL/DB/MetaSetup/CustomVariableValidity.pm index 25876d748..6b9dcd845 100644 --- a/SL/DB/MetaSetup/CustomVariableValidity.pm +++ b/SL/DB/MetaSetup/CustomVariableValidity.pm @@ -4,28 +4,26 @@ package SL::DB::CustomVariableValidity; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'custom_variables_validity', +__PACKAGE__->meta->table('custom_variables_validity'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - config_id => { type => 'integer', not_null => 1 }, - trans_id => { type => 'integer', not_null => 1 }, - itime => { type => 'timestamp', default => 'now()' }, - ], +__PACKAGE__->meta->columns( + config_id => { type => 'integer', not_null => 1 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + trans_id => { type => 'integer', 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); - foreign_keys => [ - config => { - class => 'SL::DB::CustomVariableConfig', - key_columns => { config_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + config => { + class => 'SL::DB::CustomVariableConfig', + key_columns => { config_id => 'id' }, + }, ); 1;