X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FRequirementSpecTextBlock.pm;h=c1fff72f43face78f757f587d98213edd6eff073;hb=a0b82b1e7a9fab32f162ebee5031913b2f44ed5a;hp=426fac092452b22ea95005cb616a38ea03ba465c;hpb=49644f8f89ef5e337763ab013b8cdce6d28f4493;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RequirementSpecTextBlock.pm b/SL/DB/MetaSetup/RequirementSpecTextBlock.pm index 426fac092..c1fff72f4 100644 --- a/SL/DB/MetaSetup/RequirementSpecTextBlock.pm +++ b/SL/DB/MetaSetup/RequirementSpecTextBlock.pm @@ -4,33 +4,31 @@ package SL::DB::RequirementSpecTextBlock; use strict; -use base qw(SL::DB::Object); - -__PACKAGE__->meta->setup( - table => 'requirement_spec_text_blocks', - - columns => [ - id => { type => 'serial', not_null => 1 }, - requirement_spec_id => { type => 'integer', not_null => 1 }, - title => { type => 'text', not_null => 1 }, - text => { type => 'text' }, - position => { type => 'integer', not_null => 1 }, - output_position => { type => 'integer', default => 1, not_null => 1 }, - itime => { type => 'timestamp', default => 'now()', not_null => 1 }, - mtime => { type => 'timestamp' }, - is_flagged => { type => 'boolean', default => 'false', not_null => 1 }, - ], - - primary_key_columns => [ 'id' ], - - allow_inline_column_values => 1, - - foreign_keys => [ - requirement_spec => { - class => 'SL::DB::RequirementSpec', - key_columns => { requirement_spec_id => 'id' }, - }, - ], +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('requirement_spec_text_blocks'); + +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + is_flagged => { type => 'boolean', default => 'false', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()', not_null => 1 }, + mtime => { type => 'timestamp' }, + output_position => { type => 'integer', default => 1, not_null => 1 }, + position => { type => 'integer', not_null => 1 }, + requirement_spec_id => { type => 'integer', not_null => 1 }, + text => { type => 'text' }, + title => { type => 'text', not_null => 1 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + +__PACKAGE__->meta->foreign_keys( + requirement_spec => { + class => 'SL::DB::RequirementSpec', + key_columns => { requirement_spec_id => 'id' }, + }, ); 1;