From 701674940c1daf886257a14c5e933fcda2a1883d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 10 Dec 2013 15:49:45 +0100 Subject: [PATCH] =?utf8?q?RDBO-Model=20von=20delivery=5Fterms=20neu=20erze?= =?utf8?q?ugen,=20als=20Mapping=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/Mappings.pm | 1 + SL/DB/MetaSetup/DeliveryTerm.pm | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) 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; ; -- 2.20.1