MetaSetup AuthSessionContent
authorG. Richardson <information@kivitendo-premium.de>
Fri, 11 Mar 2016 16:05:36 +0000 (17:05 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Fri, 11 Mar 2016 16:05:36 +0000 (17:05 +0100)
SL/DB/MetaSetup/AuthSessionContent.pm

index 4d08917..fc36381 100644 (file)
@@ -18,5 +18,12 @@ __PACKAGE__->meta->columns(
 
 __PACKAGE__->meta->primary_key_columns([ 'session_id', 'sess_key' ]);
 
+__PACKAGE__->meta->foreign_keys(
+  session => {
+    class       => 'SL::DB::AuthSession',
+    key_columns => { session_id => 'id' },
+  },
+);
+
 1;
 ;