Commit ced53bd4 authored by Leigh Stoller's avatar Leigh Stoller

Add flag to users table for moving users from Classic to Portal

interface.
parent 181e575d
......@@ -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`),
......
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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment