Skip to content
GitLab
Menu
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
43e53bc3
Commit
43e53bc3
authored
Jun 20, 2017
by
Leigh B Stoller
Browse files
Add new slots to apt extension info table for recording auto approval info.
parent
72fa735e
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
43e53bc3
...
...
@@ -224,6 +224,9 @@ CREATE TABLE `apt_instance_extension_info` (
`wanted`
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
`granted`
smallint
(
5
)
unsigned
default
NULL
,
`needapproval`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`autoapproved`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`autoapproved_reason`
tinytext
,
`autoapproved_metrics`
mediumtext
,
`admin`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`reason`
mediumtext
,
`message`
mediumtext
,
...
...
sql/updates/4/587
0 → 100644
View file @
43e53bc3
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instance_extension_info", "autoapproved")) {
DBQueryFatal("alter table apt_instance_extension_info add " .
" `autoapproved` tinyint(1) NOT NULL default '0' ".
" after needapproval");
}
if (!DBSlotExists("apt_instance_extension_info", "autoapproved_reason")) {
DBQueryFatal("alter table apt_instance_extension_info add " .
" `autoapproved_reason` tinytext after autoapproved");
}
if (!DBSlotExists("apt_instance_extension_info", "autoapproved_metrics")) {
DBQueryFatal("alter table apt_instance_extension_info add " .
" `autoapproved_metrics` mediumtext ".
" after autoapproved_reason");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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