X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d17e1b9d1b761bb19d0cb79a742ea70a07028998..5723fbf943e494ce9ffd6f9fc44251eb04d3362c:/SL/DB/MetaSetup/RequirementSpecVersion.pm diff --git a/SL/DB/MetaSetup/RequirementSpecVersion.pm b/SL/DB/MetaSetup/RequirementSpecVersion.pm index ac96df307..3c285e30a 100644 --- a/SL/DB/MetaSetup/RequirementSpecVersion.pm +++ b/SL/DB/MetaSetup/RequirementSpecVersion.pm @@ -6,32 +6,20 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'requirement_spec_versions', - - columns => [ - id => { type => 'serial', not_null => 1 }, - version_number => { type => 'integer' }, - description => { type => 'text', not_null => 1 }, - comment => { type => 'text' }, - order_date => { type => 'date' }, - order_number => { type => 'text' }, - order_id => { type => 'integer' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->table('requirement_spec_versions'); + +__PACKAGE__->meta->columns( + comment => { type => 'text' }, + description => { type => 'text', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + version_number => { type => 'integer' }, +); - allow_inline_column_values => 1, +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - foreign_keys => [ - order => { - class => 'SL::DB::Order', - key_columns => { order_id => 'id' }, - }, - ], -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;