From: Sven Schöling Date: Wed, 26 Jun 2013 09:34:16 +0000 (+0200) Subject: foreign keys gefixt X-Git-Tag: release-3.1.0beta1~258 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f4608acc141bdbea824fd3ccadeacf130bf78276;p=kivitendo-erp.git foreign keys gefixt --- diff --git a/SL/DB/MetaSetup/Order.pm b/SL/DB/MetaSetup/Order.pm index fa4230f3e..467b5b4e1 100644 --- a/SL/DB/MetaSetup/Order.pm +++ b/SL/DB/MetaSetup/Order.pm @@ -97,7 +97,7 @@ __PACKAGE__->meta->foreign_keys( key_columns => { language_id => 'id' }, }, - payment => { + payment_terms => { class => 'SL::DB::PaymentTerm', key_columns => { payment_id => 'id' }, }, diff --git a/SL/DB/MetaSetup/OrderItem.pm b/SL/DB/MetaSetup/OrderItem.pm index e48d2bddf..dd2fde76e 100644 --- a/SL/DB/MetaSetup/OrderItem.pm +++ b/SL/DB/MetaSetup/OrderItem.pm @@ -43,7 +43,7 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); __PACKAGE__->meta->foreign_keys( - parts => { + part => { class => 'SL::DB::Part', key_columns => { parts_id => 'id' }, }, @@ -63,7 +63,7 @@ __PACKAGE__->meta->foreign_keys( key_columns => { project_id => 'id' }, }, - trans => { + order => { class => 'SL::DB::Order', key_columns => { trans_id => 'id' }, }, diff --git a/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm b/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm index 2beb87ab0..13f1814aa 100644 --- a/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm +++ b/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm @@ -31,7 +31,7 @@ __PACKAGE__->meta->foreign_keys( key_columns => { ar_chart_id => 'id' }, }, - oe => { + order => { class => 'SL::DB::Order', key_columns => { oe_id => 'id' }, },