Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
50e62841
Commit
50e62841
authored
May 17, 2016
by
Jonathon Duerig
Browse files
Add max_seen to apt_announcements table
parent
f6ab7761
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
50e62841
...
...
@@ -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
,
...
...
sql/updates/4/512
0 → 100644
View file @
50e62841
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:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment