From 418a7036d511164bbfd0395084cd7158c4ab32d0 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 11 Mar 2016 17:05:36 +0100 Subject: [PATCH] MetaSetup AuthSessionContent --- SL/DB/MetaSetup/AuthSessionContent.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SL/DB/MetaSetup/AuthSessionContent.pm b/SL/DB/MetaSetup/AuthSessionContent.pm index 4d08917c7..fc3638102 100644 --- a/SL/DB/MetaSetup/AuthSessionContent.pm +++ b/SL/DB/MetaSetup/AuthSessionContent.pm @@ -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; ; -- 2.20.1