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
7f8298b4
Commit
7f8298b4
authored
Jun 30, 2015
by
Leigh B Stoller
Browse files
Add flag to mark instances with an extension request outstanding.
parent
9d81051c
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
7f8298b4
...
...
@@ -183,6 +183,7 @@ CREATE TABLE `apt_instances` (
`extension_reason`
mediumtext
,
`extension_history`
mediumtext
,
`extension_adminonly`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`extension_requested`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`extension_count`
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
`extension_days`
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
`physnode_count`
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
...
...
sql/updates/4/457
0 → 100644
View file @
7f8298b4
#
# APT stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "extension_requested")) {
DBQueryFatal("alter table apt_instances add ".
" `extension_requested` tinyint(1) NOT NULL default '0' ".
" after extension_adminonly");
}
return 0;
}
1;
# 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