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
fcc04a33
Commit
fcc04a33
authored
Jul 06, 2017
by
Leigh B Stoller
Browse files
Add privs to nonlocal_user_accounts table.
parent
9d6d9d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
fcc04a33
...
...
@@ -3630,6 +3630,7 @@ CREATE TABLE `nonlocal_user_accounts` (
`unix_uid`
smallint
(
5
)
unsigned
NOT
NULL
auto_increment
,
`created`
datetime
default
NULL
,
`updated`
datetime
default
NULL
,
`privs`
enum
(
'user'
,
'local_root'
)
default
'local_root'
,
`urn`
tinytext
,
`name`
tinytext
,
`email`
tinytext
,
...
...
sql/updates/4/588
0 → 100644
View file @
fcc04a33
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("nonlocal_user_accounts", "privs")) {
DBQueryFatal("alter table nonlocal_user_accounts add " .
" `privs` enum('user','local_root') default 'local_root' ".
" after updated");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Supports
Markdown
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