Merge branch 'master' of git@vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git] / SL / DB / MetaSetup / Unit.pm
index c229462..6e05737 100644 (file)
@@ -15,10 +15,13 @@ __PACKAGE__->meta->setup(
     factor    => { type => 'numeric', precision => 5, scale => 20 },
     type      => { type => 'varchar', length => 20 },
     sortkey   => { type => 'integer', not_null => 1 },
+    id        => { type => 'serial', not_null => 1 },
   ],
 
   primary_key_columns => [ 'name' ],
 
+  unique_key => [ 'id' ],
+
   foreign_keys => [
     unit => {
       class       => 'SL::DB::Unit',