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
This commit is contained in:
desaster
2010-08-14 08:10:32 +00:00
parent 68e5d2ec49
commit c115dd3952

View File

@@ -1,6 +1,6 @@
CREATE TABLE `auth` ( CREATE TABLE `auth` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`session` int(11) NOT NULL, `session` char(32) NOT NULL,
`success` tinyint(1) NOT NULL, `success` tinyint(1) NOT NULL,
`username` varchar(100) NOT NULL, `username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL, `password` varchar(100) NOT NULL,
@@ -16,7 +16,7 @@ CREATE TABLE `clients` (
CREATE TABLE `input` ( CREATE TABLE `input` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`session` int(11) NOT NULL, `session` char(32) NOT NULL,
`timestamp` datetime NOT NULL, `timestamp` datetime NOT NULL,
`realm` varchar(50) default NULL, `realm` varchar(50) default NULL,
`success` tinyint(1) default NULL, `success` tinyint(1) default NULL,
@@ -32,7 +32,7 @@ CREATE TABLE `sensors` (
) ; ) ;
CREATE TABLE `sessions` ( CREATE TABLE `sessions` (
`id` int(11) NOT NULL auto_increment, `id` char(32) NOT NULL,
`starttime` datetime NOT NULL, `starttime` datetime NOT NULL,
`endtime` datetime default NULL, `endtime` datetime default NULL,
`sensor` int(4) NOT NULL, `sensor` int(4) NOT NULL,
@@ -46,7 +46,7 @@ CREATE TABLE `sessions` (
CREATE TABLE `ttylog` ( CREATE TABLE `ttylog` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`session` int(11) NOT NULL, `session` char(32) NOT NULL,
`ttylog` mediumblob NOT NULL, `ttylog` mediumblob NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ; ) ;