| @@ 88-99 (lines=12) @@ | ||
| 85 | * @param string $tableName |
|
| 86 | * @param string $indexName |
|
| 87 | */ |
|
| 88 | protected function dropIndex(Schema $schema, $tableName, $indexName) |
|
| 89 | { |
|
| 90 | if (!$schema->hasTable($tableName)) { |
|
| 91 | return false; |
|
| 92 | } |
|
| 93 | $table = $schema->getTable($tableName); |
|
| 94 | if ($table->hasIndex($indexName)) { |
|
| 95 | $table->dropIndex($indexName); |
|
| 96 | return true; |
|
| 97 | } |
|
| 98 | return false; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| @@ 39-50 (lines=12) @@ | ||
| 36 | * @param string $tableName |
|
| 37 | * @param string $indexName |
|
| 38 | */ |
|
| 39 | protected function dropIndex(Schema $schema, $tableName, $indexName) |
|
| 40 | { |
|
| 41 | if (!$schema->hasTable($tableName)) { |
|
| 42 | return false; |
|
| 43 | } |
|
| 44 | $table = $schema->getTable($tableName); |
|
| 45 | if ($table->hasIndex($indexName)) { |
|
| 46 | $table->dropIndex($indexName); |
|
| 47 | return true; |
|
| 48 | } |
|
| 49 | return false; |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| @@ 68-79 (lines=12) @@ | ||
| 65 | * @param string $tableName |
|
| 66 | * @param string $indexName |
|
| 67 | */ |
|
| 68 | protected function dropIndex(Schema $schema, $tableName, $indexName) |
|
| 69 | { |
|
| 70 | if (!$schema->hasTable($tableName)) { |
|
| 71 | return false; |
|
| 72 | } |
|
| 73 | $table = $schema->getTable($tableName); |
|
| 74 | if ($table->hasIndex($indexName)) { |
|
| 75 | $table->dropIndex($indexName); |
|
| 76 | return true; |
|
| 77 | } |
|
| 78 | return false; |
|
| 79 | } |
|
| 80 | } |
|
| 81 | ||