X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4fd22b569d4436293e0a9d364d7356b5bfc503e5..64b49f6c38c2c5763f21df00c7b4580ff70893be:/SL/DB/MetaSetup/GenericTranslation.pm diff --git a/SL/DB/MetaSetup/GenericTranslation.pm b/SL/DB/MetaSetup/GenericTranslation.pm index 452222406..94556c76c 100644 --- a/SL/DB/MetaSetup/GenericTranslation.pm +++ b/SL/DB/MetaSetup/GenericTranslation.pm @@ -6,26 +6,26 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - 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' }, - ], - - primary_key_columns => [ 'id' ], - - foreign_keys => [ - language => { - class => 'SL::DB::Language', - key_columns => { language_id => 'id' }, - }, - ], +__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' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->foreign_keys( + language => { + class => 'SL::DB::Language', + key_columns => { language_id => 'id' }, + }, +); + +# __PACKAGE__->meta->initialize; + 1; ;