X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCustomVariableValidity.pm;h=a3750b7e18e1588d68ce8758c76fbdc6092b2795;hb=68e4c3a2d381e0b1b5b8cf317a6bed22973aace9;hp=25876d74828fcd2d83b91619ec02423097a6097d;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CustomVariableValidity.pm b/SL/DB/MetaSetup/CustomVariableValidity.pm index 25876d748..a3750b7e1 100644 --- a/SL/DB/MetaSetup/CustomVariableValidity.pm +++ b/SL/DB/MetaSetup/CustomVariableValidity.pm @@ -6,26 +6,24 @@ 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( + 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 }, +); + +__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' }, + }, ); 1;