From f4608acc141bdbea824fd3ccadeacf130bf78276 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 26 Jun 2013 11:34:16 +0200 Subject: [PATCH] foreign keys gefixt --- SL/DB/MetaSetup/Order.pm | 2 +- SL/DB/MetaSetup/OrderItem.pm | 4 ++-- SL/DB/MetaSetup/PeriodicInvoicesConfig.pm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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' }, }, -- 2.20.1