]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/UnitsLanguage.pm
Auftrags-Controller: Bemerkungen und interne Bemerkungen
[kivitendo-erp.git] / SL / DB / MetaSetup / UnitsLanguage.pm
index f3c20f52c93c63a213f5a9dca6229b2ed436664c..07a4f5a2ff1f356c9d9c2afc43974ccd46a208f4 100644 (file)
@@ -4,16 +4,16 @@ package SL::DB::UnitsLanguage;
 
 use strict;
 
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
 __PACKAGE__->meta->table('units_language');
 
 __PACKAGE__->meta->columns(
 
 __PACKAGE__->meta->table('units_language');
 
 __PACKAGE__->meta->columns(
-  unit             => { type => 'varchar', length => 20, not_null => 1 },
+  id               => { type => 'serial', not_null => 1 },
   language_id      => { type => 'integer', not_null => 1 },
   localized        => { type => 'varchar', length => 20 },
   localized_plural => { type => 'varchar', length => 20 },
   language_id      => { type => 'integer', not_null => 1 },
   localized        => { type => 'varchar', length => 20 },
   localized_plural => { type => 'varchar', length => 20 },
-  id               => { type => 'serial', not_null => 1 },
+  unit             => { type => 'varchar', length => 20, not_null => 1 },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@ -30,7 +30,5 @@ __PACKAGE__->meta->foreign_keys(
   },
 );
 
   },
 );
 
-# __PACKAGE__->meta->initialize;
-
 1;
 ;
 1;
 ;