Add index for nick_name in documents and comments table

This commit is contained in:
Kijin Sung 2017-12-21 14:50:02 +09:00
parent ae4fd85bfe
commit 98b328fa3f
4 changed files with 23 additions and 2 deletions

View file

@ -108,6 +108,12 @@ class comment extends ModuleObject
return true;
}
// 2017.12.21 Add an index for nick_name
if(!$oDB->isIndexExists('comments', 'idx_nick_name'))
{
return true;
}
return FALSE;
}
@ -192,6 +198,12 @@ class comment extends ModuleObject
{
$oDB->addIndex('comments', 'idx_parent_srl', array('parent_srl'));
}
// 2017.12.21 Add an index for nick_name
if(!$oDB->isIndexExists('comments', 'idx_nick_name'))
{
$oDB->addIndex('comments', 'idx_nick_name', array('nick_name'));
}
}
/**