Rose-Model-Updates (Foreign keys, allow_inline_column_values) nach currencies-Einführung
[kivitendo-erp.git] / SL / DB / MetaSetup / Exchangerate.pm
index f6dc3ff..ddd0943 100644 (file)
@@ -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;