Commit 88dd5a80 authored by Leigh Stoller's avatar Leigh Stoller

Add AUP support to the users table. Nothing fancy, we can get

fancy later as needed.
parent 4a1d42b7
......@@ -5374,6 +5374,7 @@ CREATE TABLE `users` (
`nocollabtools` tinyint(1) default '0',
`initial_passphrase` varchar(128) default NULL,
`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,
PRIMARY KEY (`uid_idx`),
KEY `unix_uid` (`unix_uid`),
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("users", "require_aup")) {
DBQueryFatal("alter table users add ".
" `require_aup` set('emulab','aptlab','cloudlab',".
" 'phantomnet','powder') default NULL after portal");
}
return 0;
}
# 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