X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6cf3f7762efd40bee49a2b8f11bb4ab6915d9071..ada964d139eb652502bbdec96adf8634e49d8872:/SL/DB/MetaSetup/Printer.pm diff --git a/SL/DB/MetaSetup/Printer.pm b/SL/DB/MetaSetup/Printer.pm index fc2446a1b..92bb73f79 100644 --- a/SL/DB/MetaSetup/Printer.pm +++ b/SL/DB/MetaSetup/Printer.pm @@ -6,18 +6,16 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'printers', +__PACKAGE__->meta->table('printers'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - printer_description => { type => 'text', not_null => 1 }, - printer_command => { type => 'text' }, - template_code => { type => 'text' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + id => { type => 'integer', not_null => 1, sequence => 'id' }, + printer_command => { type => 'text' }, + printer_description => { type => 'text', not_null => 1 }, + template_code => { type => 'text' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;