X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FProjectType.pm;h=d336b7ee89069ac12b14da30441b934783ccf8c5;hb=60dcd6c0c1abb2e06d31c4d46863fc09556ccd7b;hp=5608f291f4e3ff05ab8599393a6d6d0e4e836943;hpb=9c7262bf1daa8ca9bb1c81a11be0e47cbcf1b533;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/ProjectType.pm b/SL/DB/MetaSetup/ProjectType.pm index 5608f291f..d336b7ee8 100644 --- a/SL/DB/MetaSetup/ProjectType.pm +++ b/SL/DB/MetaSetup/ProjectType.pm @@ -4,19 +4,18 @@ package SL::DB::ProjectType; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'project_types', +__PACKAGE__->meta->table('project_types'); - columns => [ - id => { type => 'serial', not_null => 1 }, - position => { type => 'integer', not_null => 1 }, - description => { type => 'text' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + id => { type => 'serial', not_null => 1 }, + internal => { type => 'boolean', default => 'false', not_null => 1 }, + position => { type => 'integer', not_null => 1 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;