]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/GenericTranslation.pm
Nicht mehr benötigte MetaSetups löschen: DptTrans, TranslationPaymentTerm
[mfinanz.git] / SL / DB / MetaSetup / GenericTranslation.pm
index 4522224067d8396086082042ced5d9d2fe090acf..94556c76c2c508dd98dbb689cfa84c05ce87b753 100644 (file)
@@ -6,26 +6,26 @@ use strict;
 
 use base qw(SL::DB::Object);
 
 
 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;
 ;
 1;
 ;