mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1146 missing reason_update column if upgraded from XE
This commit is contained in:
parent
6e52abc41a
commit
a5e45d9063
1 changed files with 9 additions and 0 deletions
|
|
@ -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'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue