PriceSource: Klassenauflösung fpr items von Gutschriften
[kivitendo-erp.git] / SL / DB / MetaSetup / GenericTranslation.pm
index 46a19ca..863cd3f 100644 (file)
@@ -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;
 ;