@@ 554-561 (lines=8) @@ | ||
551 | * |
|
552 | * @return bool |
|
553 | */ |
|
554 | public function changeIndex($index = null, $fields = [], $index_type = 'INDEX') |
|
555 | { |
|
556 | if ($this->showIndex($index) && !$this->dropIndex($index)) { |
|
557 | return false; |
|
558 | } // if index is exist but cannot drop it |
|
559 | ||
560 | return $this->addIndex($index, $fields, $index_type); |
|
561 | } |
|
562 | } |
|
563 |
@@ 1399-1406 (lines=8) @@ | ||
1396 | * |
|
1397 | * @return bool |
|
1398 | */ |
|
1399 | public function changeIndex($index = null, $fields = [], $index_type = 'INDEX') |
|
1400 | { |
|
1401 | if ($this->showIndex($index) && !$this->dropIndex($index)) { |
|
1402 | return false; |
|
1403 | } // if index is exist but cannot drop it |
|
1404 | ||
1405 | return $this->addIndex($index, $fields, $index_type); |
|
1406 | } |
|
1407 | ||
1408 | /** |
|
1409 | * Show if the object table or any other table is exist in database |