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
c0517087
Commit
c0517087
authored
May 26, 2016
by
Leigh B Stoller
Browse files
Add a couple of slots for dealing with openstack utilization metrics.
parent
294fade1
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
c0517087
...
...
@@ -268,12 +268,14 @@ CREATE TABLE `apt_instances` (
`servername`
tinytext
,
`monitor_pid`
int
(
11
)
default
'0'
,
`needupdate`
tinyint
(
3
)
NOT
NULL
default
'0'
,
`isopenstack`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`logfileid`
varchar
(
40
)
default
NULL
,
`cert`
mediumtext
,
`privkey`
mediumtext
,
`rspec`
mediumtext
,
`params`
mediumtext
,
`manifest`
mediumtext
,
`openstack_utilization`
mediumtext
,
PRIMARY
KEY
(
`uuid`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
...
...
sql/updates/4/515
0 → 100644
View file @
c0517087
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "isopenstack")) {
DBQueryFatal("alter table apt_instances add ".
" `isopenstack` tinyint(1) NOT NULL default '0' ".
" after needupdate");
}
if (!DBSlotExists("apt_instances", "openstack_utilization")) {
DBQueryFatal("alter table apt_instances add ".
" `openstack_utilization` mediumtext");
}
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