Fix #1146 missing reason_update column if upgraded from XE

This commit is contained in:
Kijin Sung 2019-03-06 00:23:41 +09:00
parent 6e52abc41a
commit a5e45d9063

View file

@ -128,6 +128,9 @@ class document extends ModuleObject
// 2016. 3. 14 Add a column(document_upate_log) for admin
if(!$oDB->isColumnExists('document_update_log', 'is_admin')) return true;
// 2019. 3. 07 #1146
if(!$oDB->isColumnExists('document_update_log', 'reason_update')) return true;
// 2017.12.21 Add an index for nick_name
if(!$oDB->isIndexExists('documents', 'idx_nick_name')) return true;
@ -353,6 +356,12 @@ class document extends ModuleObject
$oDB->addIndex('document_update_log', 'idx_is_admin', array('is_admin'));
}
// 2019. 3. 07 #1146
if(!$oDB->isColumnExists('document_update_log', 'reason_update'))
{
$oDB->addColumn('document_update_log', 'reason_update', 'text', '', null, false, 'extra_vars');
}
// 2017.12.21 Add an index for nick_name
if(!$oDB->isIndexExists('documents', 'idx_nick_name'))
{