|
@@ 50-52 (lines=3) @@
|
| 47 |
|
|
| 48 |
|
$columns = $this->createAddColumns($collection, $columns, $fields); |
| 49 |
|
|
| 50 |
|
if(count($tmpIndexes)>0){ |
| 51 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 52 |
|
} |
| 53 |
|
$table = new Table($collection, $columns, $indexes); |
| 54 |
|
return $schemaManager->createTable($table); |
| 55 |
|
} |
|
@@ 109-111 (lines=3) @@
|
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
if (count($tmpIndexes) > 0) { |
| 110 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 111 |
|
} |
| 112 |
|
foreach ($indexes as $index) { |
| 113 |
|
$schemaManager->createIndex($index, $collection); |
| 114 |
|
} |