Commit f761efa7 authored by Kevin Atkinson's avatar Kevin Atkinson

Database change in prep for exp-vis changes (needs more testing on

devel tree).
parent 363d629a
......@@ -1824,6 +1824,7 @@ CREATE TABLE `login` (
`hashhash` varchar(64) NOT NULL default '',
`timeout` varchar(10) NOT NULL default '',
`adminon` tinyint(1) NOT NULL default '0',
`opskey` varchar(64) NOT NULL,
PRIMARY KEY (`uid_idx`,`hashkey`),
UNIQUE KEY `hashhash` (`uid_idx`,`hashhash`),
UNIQUE KEY `uidkey` (`uid`,`hashkey`)
......
#
# exp-vis
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("login", "opskey")) {
DBQueryFatal("ALTER TABLE login ADD COLUMN ".
" `opskey` varchar(64) NOT NULL ".
" after adminon");
}
return 0;
}
1;
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