Commit 67b3be97 authored by Leigh B Stoller's avatar Leigh B Stoller

Add table to hold credentials for users that are created from their Geni

identity. The credential is just a speaksfor for now, but this might
hold other kinds of credentials in the future.
parent 27f82241
......@@ -4371,6 +4371,21 @@ CREATE TABLE `unixgroup_membership` (
PRIMARY KEY (`uid`,`gid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `user_credentials`
--
DROP TABLE IF EXISTS `user_credentials`;
CREATE TABLE `user_credentials` (
`uid` varchar(8) NOT NULL default '',
`uid_idx` mediumint(8) unsigned NOT NULL default '0',
`created` datetime default NULL,
`expires` datetime default NULL,
`credential_string` text,
`certificate_string` text,
PRIMARY KEY (`uid_idx`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `user_exports`
--
......
#
# Add table to hold credentials for nonlocal users.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("user_credentials")) {
DBQueryFatal("CREATE TABLE `user_credentials` ( ".
" `uid` varchar(8) NOT NULL default '', ".
" `uid_idx` mediumint(8) unsigned NOT NULL default '0', ".
" `created` datetime default NULL, ".
" `expires` datetime default NULL, ".
" `credential_string` text, ".
" `certificate_string` text, ".
" PRIMARY KEY (`uid_idx`) ".
" ) ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
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