X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FDB%2FMetaSetup%2FCustomVariableValidity.pm;h=3757ddcc165910ac9de9ac4ba38c4d92807c5457;hb=b8b112a39bd601b0bc717646d78de470631da22a;hp=25876d74828fcd2d83b91619ec02423097a6097d;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CustomVariableValidity.pm b/SL/DB/MetaSetup/CustomVariableValidity.pm index 25876d748..3757ddcc1 100644 --- a/SL/DB/MetaSetup/CustomVariableValidity.pm +++ b/SL/DB/MetaSetup/CustomVariableValidity.pm @@ -6,27 +6,27 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - 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()' }, - ], - - primary_key_columns => [ 'id' ], - - allow_inline_column_values => 1, - - foreign_keys => [ - config => { - class => 'SL::DB::CustomVariableConfig', - key_columns => { config_id => 'id' }, - }, - ], +__PACKAGE__->meta->table('custom_variables_validity'); + +__PACKAGE__->meta->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->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + +__PACKAGE__->meta->foreign_keys( + config => { + class => 'SL::DB::CustomVariableConfig', + key_columns => { config_id => 'id' }, + }, ); +# __PACKAGE__->meta->initialize; + 1; ;