From fb3b6c8ed76d09f77657e220e9cef07c0efb15a9 Mon Sep 17 00:00:00 2001 From: "zach%zachlipton.com" Date: Fri, 29 Sep 2006 23:42:02 +0000 Subject: [PATCH] Define an explicit primary key for sessions. --- webtools/litmus/Litmus/DB/Session.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webtools/litmus/Litmus/DB/Session.pm b/webtools/litmus/Litmus/DB/Session.pm index 15b72fb1df90..f0a78dec91d1 100755 --- a/webtools/litmus/Litmus/DB/Session.pm +++ b/webtools/litmus/Litmus/DB/Session.pm @@ -39,7 +39,8 @@ use Time::Piece; Litmus::DB::Session->table('sessions'); -Litmus::DB::Session->columns(All => qw/session_id user_id sessioncookie expires/); +Litmus::DB::Session->columns(Primary => qw/session_id/); +Litmus::DB::Session->columns(All => qw/user_id sessioncookie expires/); Litmus::DB::Session->columns(TEMP => qw //); Litmus::DB::Session->has_a(user_id => "Litmus::DB::User");