X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FGenericTranslation.pm;h=81bd6d834d6fc4ef95ee9157b82535a73bb05bc7;hb=bde97469a3c19ef4ecb34c95dbf40d9d622093d2;hp=4522224067d8396086082042ced5d9d2fe090acf;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/GenericTranslation.pm b/SL/DB/MetaSetup/GenericTranslation.pm index 452222406..81bd6d834 100644 --- a/SL/DB/MetaSetup/GenericTranslation.pm +++ b/SL/DB/MetaSetup/GenericTranslation.pm @@ -4,27 +4,25 @@ package SL::DB::GenericTranslation; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'generic_translations', +__PACKAGE__->meta->table('generic_translations'); - columns => [ - id => { type => 'serial', not_null => 1 }, - language_id => { type => 'integer' }, - translation_type => { type => 'varchar', length => 100, not_null => 1 }, - translation_id => { type => 'integer' }, - translation => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + language_id => { type => 'integer' }, + translation => { type => 'text' }, + translation_id => { type => 'integer' }, + translation_type => { type => 'varchar', length => 100, not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - foreign_keys => [ - language => { - class => 'SL::DB::Language', - key_columns => { language_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + language => { + class => 'SL::DB::Language', + key_columns => { language_id => 'id' }, + }, ); 1;