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
3159a5d4
Commit
3159a5d4
authored
May 31, 2016
by
Leigh B Stoller
Browse files
Add "info" to apt_instance_aggregate_history to record messages requesting
more info.
parent
05abd217
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
3159a5d4
...
...
@@ -160,7 +160,7 @@ CREATE TABLE `apt_instance_extension_info` (
`tstamp`
datetime
default
NULL
,
`uid`
varchar
(
8
)
NOT
NULL
default
''
,
`uid_idx`
mediumint
(
8
)
unsigned
NOT
NULL
default
'0'
,
`action`
enum
(
'request'
,
'deny'
)
NOT
NULL
default
'request'
,
`action`
enum
(
'request'
,
'deny'
,
'info'
)
NOT
NULL
default
'request'
,
`wanted`
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
`granted`
smallint
(
5
)
unsigned
default
NULL
,
`admin`
tinyint
(
1
)
NOT
NULL
default
'0'
,
...
...
sql/updates/4/516
0 → 100644
View file @
3159a5d4
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("apt_instance_extension_info", "action");
if (!$type) {
Fatal("No 'action' slot in 'apt_instance_extension_info' table");
}
if (! ($type =~ /info/)) {
DBQueryFatal("alter table apt_instance_extension_info ".
" change `action` `action` ".
" enum('request','deny','info') ".
" NOT NULL default 'request'");
}
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