Commit 21cf1a82 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix to previous revision.

parent 483a0fa5
...@@ -5213,11 +5213,11 @@ CREATE TABLE `vlans` ( ...@@ -5213,11 +5213,11 @@ CREATE TABLE `vlans` (
-- --
DROP TABLE IF EXISTS `web_sessions`; DROP TABLE IF EXISTS `web_sessions`;
CREATE TABLE `web_sessions` ( CREATE TABLE `web_sessions` (
`session_id` varchar(128) binary NOT NULL default '', `session_id` varchar(128) NOT NULL default '',
`session_expires` datetime NOT NULL default '0000-00-00 00:00:00', `session_expires` datetime NOT NULL default '0000-00-00 00:00:00',
`session_data` text, `session_data` text,
PRIMARY KEY (`session_id`) PRIMARY KEY (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --
...@@ -5225,15 +5225,15 @@ CREATE TABLE `web_sessions` ( ...@@ -5225,15 +5225,15 @@ CREATE TABLE `web_sessions` (
-- --
DROP TABLE IF EXISTS `web_tasks`; DROP TABLE IF EXISTS `web_tasks`;
CREATE TABLE `web_tasks` ( CREATE TABLE `web_tasks` (
`task_id` varchar(128) binary NOT NULL default '', `task_id` varchar(128) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00', `created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00', `modified` datetime NOT NULL default '0000-00-00 00:00:00',
`exited` datetime default NULL, `exited` datetime default NULL,
`process_id` int(11) default '0', `process_id` int(11) default '0',
`object_uuid` varchar(40) NOT NULL default '', `object_uuid` varchar(40) NOT NULL default '',
`exitcode` tinyint(3) default '0', `exitcode` tinyint(3) default '0',
`task_data` text, `task_data` text,
PRIMARY KEY (`task_id`), PRIMARY KEY (`task_id`),
KEY `object_uuid` (`object_uuid`) KEY `object_uuid` (`object_uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
...@@ -21,7 +21,7 @@ sub DoUpdate($$$) ...@@ -21,7 +21,7 @@ sub DoUpdate($$$)
} }
if (!DBTableExists("web_sessions")) { if (!DBTableExists("web_sessions")) {
DBQueryFatal("CREATE TABLE `web_sessions` ( ". DBQueryFatal("CREATE TABLE `web_sessions` ( ".
" `session_id` varchar(128) binary NOT NULL default '', ". " `session_id` varchar(128) NOT NULL default '', ".
" `session_expires` datetime NOT NULL ". " `session_expires` datetime NOT NULL ".
" default '0000-00-00 00:00:00', ". " default '0000-00-00 00:00:00', ".
" `session_data` text, ". " `session_data` text, ".
...@@ -30,7 +30,7 @@ sub DoUpdate($$$) ...@@ -30,7 +30,7 @@ sub DoUpdate($$$)
} }
if (!DBTableExists("web_tasks")) { if (!DBTableExists("web_tasks")) {
DBQueryFatal("CREATE TABLE `web_tasks` ( ". DBQueryFatal("CREATE TABLE `web_tasks` ( ".
" `task_id` varchar(128) binary NOT NULL default '', ". " `task_id` varchar(128) NOT NULL default '', ".
" `created` datetime NOT NULL ". " `created` datetime NOT NULL ".
" default '0000-00-00 00:00:00', ". " default '0000-00-00 00:00:00', ".
" `modified` datetime NOT NULL ". " `modified` datetime NOT NULL ".
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment