Commit 5cb5a65e authored by Leigh Stoller's avatar Leigh Stoller

Change web_task exitcode from char to int; why was I restricting this to

a unix exitcode, the whole point was to be more flexible!
parent 269004b4
......@@ -6188,7 +6188,7 @@ CREATE TABLE `web_tasks` (
`exited` datetime default NULL,
`process_id` int(11) default '0',
`object_uuid` varchar(40) NOT NULL default '',
`exitcode` tinyint(3) default '0',
`exitcode` int(11) default '0',
`task_data` mediumtext,
PRIMARY KEY (`task_id`),
KEY `object_uuid` (`object_uuid`)
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("web_tasks", "exitcode");
if ($type =~ /tinyint/) {
DBQueryFatal("alter table web_tasks change exitcode ".
" `exitcode` int(11) default '0'");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
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