added a column for administrators.

This commit is contained in:
BJRambo 2016-03-14 09:41:34 +09:00
parent 3272c5a021
commit 9c653d210b
10 changed files with 59 additions and 7 deletions

View file

@ -127,6 +127,9 @@ class document extends ModuleObject
// 2016. 1. 27: Add a column(declare_message) for report
if(!$oDB->isColumnExists("document_declared_log","declare_message")) return true;
// 2016. 3. 14 Add a column(document_upate_log) for admin
if(!$oDB->isColumnExists('document_update_log', 'is_admin')) return true;
return false;
}
@ -328,6 +331,12 @@ class document extends ModuleObject
$oDB->addColumn('document_declared_log',"declare_message","text");
}
// 2016. 3. 14 Add a column(document_update_log) for admin
if(!$oDB->isColumnExists('document_update_log', 'is_admin'))
{
$oDB->addColumn('document_update_log', 'is_admin', 'varchar', 1);
}
return new Object(0,'success_updated');
}