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
0b2b1ee4
Commit
0b2b1ee4
authored
Dec 08, 2015
by
Leigh B Stoller
Browse files
Add paniced flag to apt_instances.
parent
caf36b9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
0b2b1ee4
...
...
@@ -224,6 +224,8 @@ CREATE TABLE `apt_instances` (
`status_timestamp`
datetime
default
NULL
,
`canceled`
tinyint
(
2
)
NOT
NULL
default
'0'
,
`canceled_timestamp`
datetime
default
NULL
,
`paniced`
tinyint
(
2
)
NOT
NULL
default
'0'
,
`paniced_timestamp`
datetime
default
NULL
,
`admin_lockdown`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`user_lockdown`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`extension_code`
varchar
(
32
)
default
NULL
,
...
...
sql/updates/4/488
0 → 100644
View file @
0b2b1ee4
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "paniced")) {
DBQueryFatal("alter table apt_instances add ".
" `paniced` tinyint(2) NOT NULL default '0' ".
" after canceled_timestamp");
}
if (!DBSlotExists("apt_instances", "paniced_timestamp")) {
DBQueryFatal("alter table apt_instances add ".
" `paniced_timestamp` datetime default NULL ".
" after paniced");
}
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