Commit 50e62841 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Add max_seen to apt_announcements table

parent f6ab7761
......@@ -353,6 +353,7 @@ CREATE TABLE `apt_announcements` (
`uid_idx` int(10) default NULL,
`genesis` varchar(64) NOT NULL default 'emulab',
`retired` tinyint(1) NOT NULL default '0',
`max_seen` int(8) NOT NULL default '20',
`text` mediumtext,
`style` varchar(64) NOT NULL default 'alert-info',
`link_label` tinytext,
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_announcements", "max_seen")) {
DBQueryFatal("alter table apt_announcements add ".
" `max_seen` int(8) NOT NULL default '20' after retired");
return 0;
# Local Variables:
# mode:perl
# End:
Supports Markdown
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