From 65108d22058b8ad260deb6ea236cc15fbd826529 Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Sun, 31 Jul 2016 13:46:43 +0200 Subject: [PATCH] - "session_id" column can not handle long strings, fixed #273 --- app/lib/db/sql/session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/db/sql/session.php b/app/lib/db/sql/session.php index 60702050..86be69f2 100644 --- a/app/lib/db/sql/session.php +++ b/app/lib/db/sql/session.php @@ -178,9 +178,9 @@ class Session extends Mapper { ((($name=$db->name())&&$db->driver()!='pgsql')? ($name.'.'):''))). $table.' ('.$eol. - $tab.$db->quotekey('session_id').' VARCHAR(40),'.$eol. + $tab.$db->quotekey('session_id').' VARCHAR(255),'.$eol. $tab.$db->quotekey('data').' TEXT,'.$eol. - $tab.$db->quotekey('ip').' VARCHAR(40),'.$eol. + $tab.$db->quotekey('ip').' VARCHAR(45),'.$eol. $tab.$db->quotekey('agent').' VARCHAR(255),'.$eol. $tab.$db->quotekey('stamp').' INTEGER,'.$eol. $tab.'PRIMARY KEY ('.$db->quotekey('session_id').')'.$eol.