From c115dd3952e33f29e58d522700391fabbdb6457e Mon Sep 17 00:00:00 2001 From: desaster Date: Sat, 14 Aug 2010 08:10:32 +0000 Subject: [PATCH] Updated mysql schema for the new non-blocking mysql code git-svn-id: https://kippo.googlecode.com/svn/trunk@163 951d7100-d841-11de-b865-b3884708a8e2 --- doc/sql/mysql.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/sql/mysql.sql b/doc/sql/mysql.sql index 5f1e4dde..753a340f 100644 --- a/doc/sql/mysql.sql +++ b/doc/sql/mysql.sql @@ -1,6 +1,6 @@ CREATE TABLE `auth` ( `id` int(11) NOT NULL auto_increment, - `session` int(11) NOT NULL, + `session` char(32) NOT NULL, `success` tinyint(1) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, @@ -16,7 +16,7 @@ CREATE TABLE `clients` ( CREATE TABLE `input` ( `id` int(11) NOT NULL auto_increment, - `session` int(11) NOT NULL, + `session` char(32) NOT NULL, `timestamp` datetime NOT NULL, `realm` varchar(50) default NULL, `success` tinyint(1) default NULL, @@ -32,7 +32,7 @@ CREATE TABLE `sensors` ( ) ; CREATE TABLE `sessions` ( - `id` int(11) NOT NULL auto_increment, + `id` char(32) NOT NULL, `starttime` datetime NOT NULL, `endtime` datetime default NULL, `sensor` int(4) NOT NULL, @@ -46,7 +46,7 @@ CREATE TABLE `sessions` ( CREATE TABLE `ttylog` ( `id` int(11) NOT NULL auto_increment, - `session` int(11) NOT NULL, + `session` char(32) NOT NULL, `ttylog` mediumblob NOT NULL, PRIMARY KEY (`id`) ) ;