X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b8b112a39bd601b0bc717646d78de470631da22a..c6ba60d17db50207f8ea66ab9c3009ea19d11399:/SL/DB/MetaSetup/GenericTranslation.pm diff --git a/SL/DB/MetaSetup/GenericTranslation.pm b/SL/DB/MetaSetup/GenericTranslation.pm index 46a19caf5..863cd3fd0 100644 --- a/SL/DB/MetaSetup/GenericTranslation.pm +++ b/SL/DB/MetaSetup/GenericTranslation.pm @@ -11,14 +11,19 @@ __PACKAGE__->meta->table('generic_translations'); __PACKAGE__->meta->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' }, + translation_id => { type => 'integer' }, + translation_type => { type => 'varchar', length => 100, not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); -# __PACKAGE__->meta->initialize; +__PACKAGE__->meta->foreign_keys( + language => { + class => 'SL::DB::Language', + key_columns => { language_id => 'id' }, + }, +); 1; ;