| @@ 148-152 (lines=5) @@ | ||
| 145 | $oModuleController->insertTrigger('module.dispAdditionSetup', 'comment', 'view', 'triggerDispCommentAdditionSetup', 'before'); |
|
| 146 | } |
|
| 147 | // 2008. 05. 14 add a column for blamed count |
|
| 148 | if(!$oDB->isColumnExists("comments", "blamed_count")) |
|
| 149 | { |
|
| 150 | $oDB->addColumn('comments', 'blamed_count', 'number', 11, 0, TRUE); |
|
| 151 | $oDB->addIndex('comments', 'idx_blamed_count', array('blamed_count')); |
|
| 152 | } |
|
| 153 | if(!$oDB->isColumnExists("comment_voted_log", "point")) |
|
| 154 | { |
|
| 155 | $oDB->addColumn('comment_voted_log', 'point', 'number', 11, 0, TRUE); |
|
| @@ 187-191 (lines=5) @@ | ||
| 184 | // 2008. 02. 18 create a composite index on the columns(module_srl + document_srl) (checked by Manian)) |
|
| 185 | if(!$oDB->isIndexExists("documents","idx_module_document_srl")) $oDB->addIndex("documents","idx_module_document_srl", array("module_srl","document_srl")); |
|
| 186 | // 2008. 04. 23 Add a column(blamed count) |
|
| 187 | if(!$oDB->isColumnExists("documents", "blamed_count")) |
|
| 188 | { |
|
| 189 | $oDB->addColumn('documents', 'blamed_count', 'number', 11, 0, true); |
|
| 190 | $oDB->addIndex('documents', 'idx_blamed_count', array('blamed_count')); |
|
| 191 | } |
|
| 192 | ||
| 193 | if(!$oDB->isIndexExists("documents","idx_module_blamed_count")) |
|
| 194 | { |
|