Commit 9fc3b2c4 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add inactive state to users status enum.

parent 40c55c18
......@@ -4942,7 +4942,7 @@ CREATE TABLE `users` (
`usr_pswd` tinytext NOT NULL,
`usr_w_pswd` tinytext,
`unix_uid` smallint(5) unsigned NOT NULL default '0',
`status` enum('newuser','unapproved','unverified','active','frozen','archived','nonlocal','other') NOT NULL default 'newuser',
`status` enum('newuser','unapproved','unverified','active','frozen','archived','nonlocal','inactive','other') NOT NULL default 'newuser',
`admin` tinyint(4) default '0',
`foreign_admin` tinyint(4) default '0',
`dbedit` tinyint(4) default '0',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("users", "status");
if (!$type) {
Fatal("Could not get type for 'status' in 'users'");
}
if (! ($type =~ /inactive/)) {
DBQueryFatal("alter table users modify `status` ".
" enum('newuser','unapproved','unverified','active',".
" 'frozen','archived','nonlocal',".
" 'inactive','other') NOT NULL default 'newuser'");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Supports Markdown
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