From: Moritz Bunkus Date: Tue, 10 Dec 2013 14:49:45 +0000 (+0100) Subject: RDBO-Model von delivery_terms neu erzeugen, als Mapping hinzufügen X-Git-Tag: release-3.1.0beta1~22^2~101 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=701674940c1daf886257a14c5e933fcda2a1883d;p=kivitendo-erp.git RDBO-Model von delivery_terms neu erzeugen, als Mapping hinzufügen --- diff --git a/SL/DB/Helper/Mappings.pm b/SL/DB/Helper/Mappings.pm index e8dfb5623..35d601d60 100644 --- a/SL/DB/Helper/Mappings.pm +++ b/SL/DB/Helper/Mappings.pm @@ -120,6 +120,7 @@ my %kivitendo_package_names = ( delivery_orders => 'delivery_order', delivery_order_items => 'delivery_order_item', delivery_order_items_stock => 'delivery_order_items_stock', + delivery_terms => 'delivery_term', department => 'department', drafts => 'draft', dunning => 'dunning', diff --git a/SL/DB/MetaSetup/DeliveryTerm.pm b/SL/DB/MetaSetup/DeliveryTerm.pm index ebcc7eaf1..672aba18d 100644 --- a/SL/DB/MetaSetup/DeliveryTerm.pm +++ b/SL/DB/MetaSetup/DeliveryTerm.pm @@ -6,22 +6,20 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'delivery_terms', +__PACKAGE__->meta->table('delivery_terms'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - description_long => { type => 'text' }, - sortkey => { type => 'integer', not_null => 1 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + description_long => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + sortkey => { type => 'integer', not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;