|
@@ 65-67 (lines=3) @@
|
| 62 |
|
|
| 63 |
|
$columns[] = new Column($field['name'], Type::getType($field['type']), $options ); |
| 64 |
|
} |
| 65 |
|
if(count($tmpIndexes)>0){ |
| 66 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 67 |
|
} |
| 68 |
|
$table = new Table($collection, $columns, $indexes); |
| 69 |
|
return $schemaManager->createTable($table); |
| 70 |
|
} |
|
@@ 102-104 (lines=3) @@
|
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
if (count($tmpIndexes) > 0) { |
| 103 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 104 |
|
} |
| 105 |
|
foreach ($indexes as $index) { |
| 106 |
|
$schemaManager->createIndex($index, $collection); |
| 107 |
|
} |