Commit c2c11836 authored by Leigh B Stoller's avatar Leigh B Stoller

Add name slot to apt_instances and apt_instance_history. Note that this

defaults to NULL since we did not require names prior to this, thus there
is no unique key defined.
parent cfd7d558
# APT Stuff.
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "name")) {
DBQueryFatal("alter table apt_instances add ".
" `name` varchar(16) default NULL ".
" after uuid");
if (!DBSlotExists("apt_instance_history", "name")) {
DBQueryFatal("alter table apt_instance_history add ".
" `name` varchar(16) default NULL ".
" after uuid");
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