]> wagnertech.de Git - mfinanz.git/commitdiff
Rose-Schema für fbf7532 aktualisiert
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 14 Dec 2015 11:43:36 +0000 (12:43 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 14 Dec 2015 11:43:36 +0000 (12:43 +0100)
Mea culpa :)

SL/DB/MetaSetup/Buchungsgruppe.pm

index fde083ab311cda9f8efe7a99d77cc3f4ca64d7e4..e89cb4b1cfe2b0ac679a8ce635b91ded0501bd2e 100644 (file)
@@ -11,11 +11,18 @@ __PACKAGE__->meta->table('buchungsgruppen');
 __PACKAGE__->meta->columns(
   description        => { type => 'text' },
   id                 => { type => 'integer', not_null => 1, sequence => 'id' },
 __PACKAGE__->meta->columns(
   description        => { type => 'text' },
   id                 => { type => 'integer', not_null => 1, sequence => 'id' },
-  inventory_accno_id => { type => 'integer' },
+  inventory_accno_id => { type => 'integer', not_null => 1 },
   sortkey            => { type => 'integer', not_null => 1 },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
   sortkey            => { type => 'integer', not_null => 1 },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
+__PACKAGE__->meta->foreign_keys(
+  inventory_accno => {
+    class       => 'SL::DB::Chart',
+    key_columns => { inventory_accno_id => 'id' },
+  },
+);
+
 1;
 ;
 1;
 ;