X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FDatev.pm;h=0b187c5088043c9a555476fc2c2d9ea45a14678f;hb=a3511b2d8974c72e4d26b2d85c5cf1cd711ccb6f;hp=cc03ba3a6076974d3b46e376591362f300165ee2;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Datev.pm b/SL/DB/MetaSetup/Datev.pm index cc03ba3a6..0b187c508 100644 --- a/SL/DB/MetaSetup/Datev.pm +++ b/SL/DB/MetaSetup/Datev.pm @@ -6,25 +6,23 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'datev', +__PACKAGE__->meta->table('datev'); - columns => [ - beraternr => { type => 'varchar', length => 7 }, - beratername => { type => 'varchar', length => 9 }, - mandantennr => { type => 'varchar', length => 5 }, - dfvkz => { type => 'varchar', length => 2 }, - datentraegernr => { type => 'varchar', length => 3 }, - abrechnungsnr => { type => 'varchar', length => 6 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - id => { type => 'serial', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + abrechnungsnr => { type => 'varchar', length => 6 }, + beratername => { type => 'varchar', length => 9 }, + beraternr => { type => 'varchar', length => 7 }, + datentraegernr => { type => 'varchar', length => 3 }, + dfvkz => { type => 'varchar', length => 2 }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + mandantennr => { type => 'varchar', length => 5 }, + mtime => { type => 'timestamp' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;