X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FContact.pm;h=419375f0204f4983b857cd7de4457a09e36b4f3b;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=322f826479ef22944dfec8417b654ef0c0b184f7;hpb=781c16772f3c80cc827f11815bfb07b8318621f0;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Contact.pm b/SL/DB/MetaSetup/Contact.pm index 322f82647..419375f02 100644 --- a/SL/DB/MetaSetup/Contact.pm +++ b/SL/DB/MetaSetup/Contact.pm @@ -4,42 +4,42 @@ package SL::DB::Contact; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'contacts', +__PACKAGE__->meta->table('contacts'); - columns => [ - cp_id => { type => 'integer', not_null => 1, sequence => 'id' }, - cp_cv_id => { type => 'integer' }, - cp_title => { type => 'varchar', length => 75 }, - cp_givenname => { type => 'varchar', length => 75 }, - cp_name => { type => 'varchar', length => 75 }, - cp_email => { type => 'text' }, - cp_phone1 => { type => 'varchar', length => 75 }, - cp_phone2 => { type => 'varchar', length => 75 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - cp_fax => { type => 'text' }, - cp_mobile1 => { type => 'text' }, - cp_mobile2 => { type => 'text' }, - cp_satphone => { type => 'text' }, - cp_satfax => { type => 'text' }, - cp_project => { type => 'text' }, - cp_privatphone => { type => 'text' }, - cp_privatemail => { type => 'text' }, - cp_abteilung => { type => 'text' }, - cp_gender => { type => 'character', length => 1 }, - cp_street => { type => 'text' }, - cp_zipcode => { type => 'text' }, - cp_city => { type => 'text' }, - cp_birthday => { type => 'date' }, - ], +__PACKAGE__->meta->columns( + cp_abteilung => { type => 'text' }, + cp_birthday => { type => 'date' }, + cp_city => { type => 'text' }, + cp_cv_id => { type => 'integer' }, + cp_email => { type => 'text' }, + cp_fax => { type => 'text' }, + cp_gender => { type => 'character', length => 1 }, + cp_givenname => { type => 'text' }, + cp_id => { type => 'integer', not_null => 1, sequence => 'id' }, + cp_main => { type => 'boolean', default => 'false' }, + cp_mobile1 => { type => 'text' }, + cp_mobile2 => { type => 'text' }, + cp_name => { type => 'text' }, + cp_phone1 => { type => 'text' }, + cp_phone2 => { type => 'text' }, + cp_position => { type => 'text' }, + cp_privatemail => { type => 'text' }, + cp_privatphone => { type => 'text' }, + cp_project => { type => 'text' }, + cp_satfax => { type => 'text' }, + cp_satphone => { type => 'text' }, + cp_street => { type => 'text' }, + cp_title => { type => 'text' }, + cp_zipcode => { type => 'text' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, +); - primary_key_columns => [ 'cp_id' ], +__PACKAGE__->meta->primary_key_columns([ 'cp_id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;