Commit 7fcf64f2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

More webtask changes.

parent 13541b2e
......@@ -143,7 +143,7 @@ CREATE TABLE `apt_datasets` (
`shared` tinyint(1) NOT NULL default '0',
`locked` datetime default NULL,
`locker_pid` int(11) default '0',
`webtask_id` varchar(128) NOT NULL default '',
`webtask_id` varchar(128) default NULL,
`credential_string` text,
PRIMARY KEY (`idx`),
UNIQUE KEY `plid` (`pid_idx`,`dataset_id`),
......@@ -294,7 +294,7 @@ CREATE TABLE `apt_instances` (
`gid_idx` mediumint(8) unsigned NOT NULL default '0',
`aggregate_urn` varchar(128) default NULL,
`public_url` tinytext,
`webtask_id` varchar(128) NOT NULL default '',
`webtask_id` varchar(128) default NULL,
`created` datetime default NULL,
`status` varchar(32) default NULL,
`status_timestamp` datetime default NULL,
......@@ -412,7 +412,7 @@ CREATE TABLE `apt_profiles` (
`gid` varchar(32) NOT NULL default '',
`gid_idx` mediumint(8) unsigned NOT NULL default '0',
`uuid` varchar(40) NOT NULL,
`webtask_id` varchar(128) NOT NULL default '',
`webtask_id` varchar(128) default NULL,
`public` tinyint(1) NOT NULL default '0',
`shared` tinyint(1) NOT NULL default '0',
`listed` tinyint(1) NOT NULL default '0',
......@@ -2472,7 +2472,7 @@ CREATE TABLE `images` (
`gid` varchar(32) NOT NULL default '',
`gid_idx` mediumint(8) unsigned NOT NULL default '0',
`uuid` varchar(40) NOT NULL default '',
`webtask_id` varchar(128) NOT NULL default '',
`webtask_id` varchar(128) default NULL,
`nodelta` tinyint(1) NOT NULL default '0',
`noversioning` tinyint(1) NOT NULL default '0',
`metadata_url` tinytext,
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table apt_datasets change `webtask_id` " .
" `webtask_id` varchar(128) default NULL");
DBQueryFatal("alter table apt_instances change `webtask_id` " .
" `webtask_id` varchar(128) default NULL");
DBQueryFatal("alter table apt_profiles change `webtask_id` " .
" `webtask_id` varchar(128) default NULL");
DBQueryFatal("alter table images change `webtask_id` " .
" `webtask_id` varchar(128) default NULL");
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