mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
불필요한 스키마 제거
This commit is contained in:
parent
b6a7b8bd7f
commit
c6614a9d02
3 changed files with 35 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ class ncenterlite extends ModuleObject
|
|||
}
|
||||
}
|
||||
|
||||
foreach(NcenterliteModel::getNotifyTypes() as $type => $srl)
|
||||
foreach(NcenterliteModel::getUserSetNotifyTypes() as $type => $srl)
|
||||
{
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', $type . '_notify'))
|
||||
{
|
||||
|
|
@ -100,6 +100,16 @@ class ncenterlite extends ModuleObject
|
|||
return true;
|
||||
}
|
||||
|
||||
if($oDB->isColumnExists('ncenterlite_user_set','admin_content_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if($oDB->isColumnExists('ncenterlite_user_set','custom_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$config = getModel('ncenterlite')->getConfig();
|
||||
|
||||
$member_config = getModel('member')->getMemberConfig();
|
||||
|
|
@ -172,7 +182,7 @@ class ncenterlite extends ModuleObject
|
|||
}
|
||||
|
||||
$prev_type = '';
|
||||
foreach(NcenterliteModel::getNotifyTypes() as $type => $srl)
|
||||
foreach(NcenterliteModel::getUserSetNotifyTypes() as $type => $srl)
|
||||
{
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', $type . '_notify'))
|
||||
{
|
||||
|
|
@ -188,6 +198,17 @@ class ncenterlite extends ModuleObject
|
|||
}
|
||||
$prev_type = $type;
|
||||
}
|
||||
|
||||
// Not use the column
|
||||
if($oDB->isColumnExists('ncenterlite_user_set','admin_content_notify'))
|
||||
{
|
||||
$oDB->dropColumn('ncenterlite_user_set', 'admin_content_notify');
|
||||
}
|
||||
|
||||
if($oDB->isColumnExists('ncenterlite_user_set','custom_notify'))
|
||||
{
|
||||
$oDB->dropColumn('ncenterlite_user_set', 'custom_notify');
|
||||
}
|
||||
|
||||
// Composite index to speed up getNotifyList
|
||||
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_member_srl_and_readed'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue