Commit cb22d600 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add a few things needed for the client side of image server.

parent 4865e2ea
......@@ -2125,6 +2125,8 @@ CREATE TABLE `image_versions` (
`isdelta` tinyint(1) NOT NULL default '0',
`isdataset` tinyint(1) NOT NULL default '0',
`released` tinyint(1) NOT NULL default '0',
`ims_reported` datetime default NULL,
`ims_noreport` tinyint(1) NOT NULL default '0',
`nodetypes` text default NULL,
`uploader_path` tinytext,
`notes` mediumtext,
......
#
# Image Server reporting
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_versions", "ims_reported")) {
DBQueryFatal("alter table image_versions add ".
" `ims_reported` datetime default NULL ".
" after released");
}
if (!DBSlotExists("image_versions", "ims_noreport")) {
DBQueryFatal("alter table image_versions add ".
" `ims_noreport` tinyint(1) NOT NULL default '0' ".
" after ims_reported");
}
return 0;
}
1;
# 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