mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#19745697 trash module devlopement
Document Status DB Column added, and Document module refactoring git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8401 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4b9faef300
commit
2e86e56bf5
31 changed files with 220 additions and 129 deletions
|
|
@ -102,6 +102,9 @@
|
|||
//2011. 04. 07 adding description column to document categories
|
||||
if(!$oDB->isColumnExists("document_categories","description")) return true;
|
||||
|
||||
//2011. 05. 23 adding status column to document
|
||||
if(!$oDB->isColumnExists('documents', 'status')) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -237,6 +240,16 @@
|
|||
//2011. 04. 07 adding description column to document categories
|
||||
if(!$oDB->isColumnExists("document_categories","description")) $oDB->addColumn('document_categories',"description","varchar",200,0);
|
||||
|
||||
//2011. 05. 23 adding status column to document
|
||||
if(!$oDB->isColumnExists('documents', 'status'))
|
||||
{
|
||||
$oDB->addColumn('documents', 'status', 'varchar', 20, 'PUBLIC');
|
||||
$args->is_secret = 'Y';
|
||||
$output = executeQuery('document.updateDocumentStatus', $args);
|
||||
if($output->toBool())
|
||||
$oDB->dropColumn('documents', 'is_secret');
|
||||
}
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue