mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
Update autologin table with more columns
This commit is contained in:
parent
af41f36bf7
commit
ca9a0aef25
5 changed files with 87 additions and 2 deletions
|
|
@ -204,6 +204,9 @@ class member extends ModuleObject {
|
|||
|
||||
if(!$oDB->isColumnExists("member", "list_order")) return true;
|
||||
if(!$oDB->isIndexExists("member","idx_list_order")) return true;
|
||||
|
||||
// Check autologin table
|
||||
if(!$oDB->isColumnExists("member_autologin", "security_key")) return true;
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
|
|
@ -314,6 +317,13 @@ class member extends ModuleObject {
|
|||
{
|
||||
$oDB->addIndex("member","idx_list_order", array("list_order"));
|
||||
}
|
||||
|
||||
// Check autologin table
|
||||
if(!$oDB->isColumnExists("member_autologin", "security_key"))
|
||||
{
|
||||
$oDB->dropTable('member_autologin');
|
||||
$oDB->createTableByXmlFile($this->module_path . '/schemas/member_autologin.xml');
|
||||
}
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue