Commit 9c3a44cb authored by Leigh Stoller's avatar Leigh Stoller

Add updated datetime to apt_datasets table.

parent 4f13f44c
......@@ -96,6 +96,7 @@ CREATE TABLE `apt_datasets` (
`remote_uuid` varchar(40) NOT NULL default '',
`remote_url` tinytext,
`created` datetime default NULL,
`updated` datetime default NULL,
`expires` datetime default NULL,
`last_used` datetime default NULL,
`state` enum('new','valid','unapproved','grace','locked','expired','busy') NOT NULL default 'new',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_datasets", "updated")) {
DBQueryFatal("alter table apt_datasets ".
" add `updated` datetime default NULL after created");
}
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