Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
ced53bd4
Commit
ced53bd4
authored
Aug 14, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flag to users table for moving users from Classic to Portal
interface.
parent
181e575d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
sql/database-create.sql
sql/database-create.sql
+1
-0
sql/updates/4/650
sql/updates/4/650
+20
-0
No files found.
sql/database-create.sql
View file @
ced53bd4
...
...
@@ -5422,6 +5422,7 @@ CREATE TABLE `users` (
`portal`
enum
(
'emulab'
,
'aptlab'
,
'cloudlab'
,
'phantomnet'
,
'powder'
)
default
NULL
,
`require_aup`
set
(
'emulab'
,
'aptlab'
,
'cloudlab'
,
'phantomnet'
,
'powder'
)
default
NULL
,
`ga_userid`
varchar
(
32
)
default
NULL
,
`portal_interface_warned`
tinyint
(
1
)
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
`uid_idx`
),
KEY
`unix_uid`
(
`unix_uid`
),
KEY
`status`
(
`status`
),
...
...
sql/updates/4/650
0 → 100644
View file @
ced53bd4
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("users", "portal_interface_warned")) {
DBQueryFatal("alter table users add " .
" `portal_interface_warned` tinyint(1) ".
" NOT NULL default '0'");
}
return 0;
}
1;
# 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