X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6cf3f7762efd40bee49a2b8f11bb4ab6915d9071..9a7a811d2d254f95f3cf1664566ff4a5335eee31:/SL/DB/MetaSetup/Unit.pm diff --git a/SL/DB/MetaSetup/Unit.pm b/SL/DB/MetaSetup/Unit.pm index c22946283..6e05737df 100644 --- a/SL/DB/MetaSetup/Unit.pm +++ b/SL/DB/MetaSetup/Unit.pm @@ -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',