mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
유저알림 설정에 스크랩 추천 대댓글 알림도 설정옵션 추가
This commit is contained in:
parent
4aec371983
commit
72526438c8
7 changed files with 86 additions and 6 deletions
|
|
@ -110,6 +110,21 @@ class ncenterlite extends ModuleObject
|
|||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'comment_comment_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'vote_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'scrap_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// PK duplicate
|
||||
if($oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
|
||||
{
|
||||
|
|
@ -218,6 +233,20 @@ class ncenterlite extends ModuleObject
|
|||
$oDB->dropIndex('ncenterlite_notify', 'idx_notify');
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','comment_comment_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'comment_comment_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','vote_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'vote_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','scrap_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'scrap_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
$config = getModel('ncenterlite')->getConfig();
|
||||
if(!$config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue