]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/Exchangerate.pm
Rose-Model-Updates (Foreign keys, allow_inline_column_values) nach currencies-Einführung
[mfinanz.git] / SL / DB / MetaSetup / Exchangerate.pm
index f6dc3ff9f0904d4df5ece582d096ed6504161ca6..ddd09438b7cbf46a4fa85becd46797d8fa184411 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;