X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FShipto.pm;h=b0a9f991b3597bfdc0a614388c991d69bea057a6;hb=82ff5451c8babb72b4963f8d3bbb4b604a3b4675;hp=0943c0448ceb67331ee5b3ad6254fd170f314360;hpb=82515b2d93dc5632f24d6e0b6f8f05f3fd19fbb0;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Shipto.pm b/SL/DB/MetaSetup/Shipto.pm index 0943c0448..b0a9f991b 100644 --- a/SL/DB/MetaSetup/Shipto.pm +++ b/SL/DB/MetaSetup/Shipto.pm @@ -6,32 +6,31 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'shipto', +__PACKAGE__->meta->table('shipto'); - columns => [ - trans_id => { type => 'integer' }, - shiptoname => { type => 'varchar', length => 75 }, - shiptodepartment_1 => { type => 'varchar', length => 75 }, - shiptodepartment_2 => { type => 'varchar', length => 75 }, - shiptostreet => { type => 'varchar', length => 75 }, - shiptozipcode => { type => 'varchar', length => 75 }, - shiptocity => { type => 'varchar', length => 75 }, - shiptocountry => { type => 'varchar', length => 75 }, - shiptocontact => { type => 'varchar', length => 75 }, - shiptophone => { type => 'varchar', length => 30 }, - shiptofax => { type => 'varchar', length => 30 }, - shiptoemail => { type => 'text' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - module => { type => 'text' }, - shipto_id => { type => 'integer', not_null => 1, sequence => 'id' }, - ], +__PACKAGE__->meta->columns( + itime => { type => 'timestamp', default => 'now()' }, + module => { type => 'text' }, + mtime => { type => 'timestamp' }, + shipto_id => { type => 'integer', not_null => 1, sequence => 'id' }, + shiptocity => { type => 'text' }, + shiptocontact => { type => 'text' }, + shiptocountry => { type => 'text' }, + shiptocp_gender => { type => 'text' }, + shiptodepartment_1 => { type => 'text' }, + shiptodepartment_2 => { type => 'text' }, + shiptoemail => { type => 'text' }, + shiptofax => { type => 'text' }, + shiptoname => { type => 'text' }, + shiptophone => { type => 'text' }, + shiptostreet => { type => 'text' }, + shiptozipcode => { type => 'text' }, + trans_id => { type => 'integer' }, +); - primary_key_columns => [ 'shipto_id' ], +__PACKAGE__->meta->primary_key_columns([ 'shipto_id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;