Commit fcc04a33 authored by Leigh B Stoller's avatar Leigh B Stoller

Add privs to nonlocal_user_accounts table.

parent 9d6d9d28
......@@ -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,
......
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:
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