X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FSepaExport.pm;h=d44cb227f099b3b9f9307bce55a4a9bf0334b9a5;hb=842d6c44252d2294a4b65f2212f141d9290f7100;hp=943121ad4e821d8174d48e749a2c7f29bd12adb9;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/SepaExport.pm b/SL/DB/MetaSetup/SepaExport.pm index 943121ad4..d44cb227f 100644 --- a/SL/DB/MetaSetup/SepaExport.pm +++ b/SL/DB/MetaSetup/SepaExport.pm @@ -4,29 +4,28 @@ package SL::DB::SepaExport; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'sepa_export', +__PACKAGE__->meta->table('sepa_export'); - columns => [ - id => { type => 'serial', not_null => 1 }, - employee_id => { type => 'integer', not_null => 1 }, - executed => { type => 'boolean', default => 'false' }, - closed => { type => 'boolean', default => 'false' }, - itime => { type => 'timestamp', default => 'now()' }, - ], +__PACKAGE__->meta->columns( + closed => { type => 'boolean', default => 'false' }, + employee_id => { type => 'integer', not_null => 1 }, + executed => { type => 'boolean', default => 'false' }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + vc => { type => 'varchar', length => 10 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, +__PACKAGE__->meta->allow_inline_column_values(1); - foreign_keys => [ - employee => { - class => 'SL::DB::Employee', - key_columns => { employee_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + employee => { + class => 'SL::DB::Employee', + key_columns => { employee_id => 'id' }, + }, ); 1;