mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
Fix for XE Core: added code to create document module "is_secret" column if it didn't exist.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8437 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
23e991bec0
commit
c384f6c753
1 changed files with 5 additions and 0 deletions
|
|
@ -102,6 +102,8 @@
|
|||
//2011. 04. 07 adding description column to document categories
|
||||
if(!$oDB->isColumnExists("document_categories","description")) return true;
|
||||
|
||||
// 2011.06.01 Bug fix: is_secret column had no update coede
|
||||
if(!$oDB->isColumnExists("documents","is_secret")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -237,6 +239,9 @@
|
|||
//2011. 04. 07 adding description column to document categories
|
||||
if(!$oDB->isColumnExists("document_categories","description")) $oDB->addColumn('document_categories',"description","varchar",200,0);
|
||||
|
||||
// 2011.06.01 Bug fix: Add is_secret column if it does not exist
|
||||
if(!$oDB->isColumnExists("documents","is_secret")) $oDB->addColumn('documents',"is_secret","char",1,0);
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue