X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FLanguage.pm;h=96d0a0a306df760511129e68d9fb2d4ba29b2297;hb=97a6f6d623a9810e1d324f44a5f8bcd12294f5d3;hp=662abc985809ad268e595235147d78a5781f0bc1;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Language.pm b/SL/DB/MetaSetup/Language.pm index 662abc985..96d0a0a30 100644 --- a/SL/DB/MetaSetup/Language.pm +++ b/SL/DB/MetaSetup/Language.pm @@ -4,27 +4,26 @@ package SL::DB::Language; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'language', +__PACKAGE__->meta->table('language'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - template_code => { type => 'text' }, - article_code => { type => 'text' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - output_numberformat => { type => 'text' }, - output_dateformat => { type => 'text' }, - output_longdates => { type => 'boolean' }, - ], +__PACKAGE__->meta->columns( + article_code => { type => 'text' }, + description => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + obsolete => { type => 'boolean', default => 'false' }, + output_dateformat => { type => 'text' }, + output_longdates => { type => 'boolean' }, + output_numberformat => { type => 'text' }, + template_code => { type => 'text' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;