From b35bf9ab655a13a851c7fbe12a9dc94a590dc9ee Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 21 May 2013 13:04:19 +0200 Subject: [PATCH] =?utf8?q?Rose-Model-Updates=20(Foreign=20keys,=20allow=5F?= =?utf8?q?inline=5Fcolumn=5Fvalues)=20nach=20currencies-Einf=C3=BChrung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/MetaSetup/Customer.pm | 7 +++++++ SL/DB/MetaSetup/DeliveryOrder.pm | 7 +++++++ SL/DB/MetaSetup/Exchangerate.pm | 9 +++++++++ SL/DB/MetaSetup/Invoice.pm | 7 +++++++ SL/DB/MetaSetup/Order.pm | 7 +++++++ SL/DB/MetaSetup/PurchaseInvoice.pm | 7 +++++++ SL/DB/MetaSetup/Vendor.pm | 7 +++++++ 7 files changed, 51 insertions(+) diff --git a/SL/DB/MetaSetup/Customer.pm b/SL/DB/MetaSetup/Customer.pm index 021d1cf56..0bb7cd96b 100644 --- a/SL/DB/MetaSetup/Customer.pm +++ b/SL/DB/MetaSetup/Customer.pm @@ -59,12 +59,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ business => { class => 'SL::DB::Business', key_columns => { business_id => 'id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + language_obj => { class => 'SL::DB::Language', key_columns => { language_id => 'id' }, diff --git a/SL/DB/MetaSetup/DeliveryOrder.pm b/SL/DB/MetaSetup/DeliveryOrder.pm index 59263b22e..86cdc6406 100644 --- a/SL/DB/MetaSetup/DeliveryOrder.pm +++ b/SL/DB/MetaSetup/DeliveryOrder.pm @@ -44,12 +44,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ contact => { class => 'SL::DB::Contact', key_columns => { cp_id => 'cp_id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + customer => { class => 'SL::DB::Customer', key_columns => { customer_id => 'id' }, diff --git a/SL/DB/MetaSetup/Exchangerate.pm b/SL/DB/MetaSetup/Exchangerate.pm index f6dc3ff9f..ddd09438b 100644 --- a/SL/DB/MetaSetup/Exchangerate.pm +++ b/SL/DB/MetaSetup/Exchangerate.pm @@ -20,6 +20,15 @@ __PACKAGE__->meta->setup( ], primary_key_columns => [ 'id' ], + + allow_inline_column_values => 1, + + foreign_keys => [ + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + ], ); 1; diff --git a/SL/DB/MetaSetup/Invoice.pm b/SL/DB/MetaSetup/Invoice.pm index 202087518..2a0e50ee2 100644 --- a/SL/DB/MetaSetup/Invoice.pm +++ b/SL/DB/MetaSetup/Invoice.pm @@ -61,12 +61,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ contact => { class => 'SL::DB::Contact', key_columns => { cp_id => 'cp_id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + customer => { class => 'SL::DB::Customer', key_columns => { customer_id => 'id' }, diff --git a/SL/DB/MetaSetup/Order.pm b/SL/DB/MetaSetup/Order.pm index c06f13288..063ca0b0f 100644 --- a/SL/DB/MetaSetup/Order.pm +++ b/SL/DB/MetaSetup/Order.pm @@ -50,12 +50,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ contact => { class => 'SL::DB::Contact', key_columns => { cp_id => 'cp_id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + customer => { class => 'SL::DB::Customer', key_columns => { customer_id => 'id' }, diff --git a/SL/DB/MetaSetup/PurchaseInvoice.pm b/SL/DB/MetaSetup/PurchaseInvoice.pm index 75040bae6..6f8131b76 100644 --- a/SL/DB/MetaSetup/PurchaseInvoice.pm +++ b/SL/DB/MetaSetup/PurchaseInvoice.pm @@ -48,12 +48,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ contact => { class => 'SL::DB::Contact', key_columns => { cp_id => 'cp_id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + department => { class => 'SL::DB::Department', key_columns => { department_id => 'id' }, diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index cb36289d9..14fb4a929 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -57,12 +57,19 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], + allow_inline_column_values => 1, + foreign_keys => [ business => { class => 'SL::DB::Business', key_columns => { business_id => 'id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + language_obj => { class => 'SL::DB::Language', key_columns => { language_id => 'id' }, -- 2.20.1