|
@@ 82-84 (lines=3) @@
|
| 79 |
|
|
| 80 |
|
$columns[] = new Column($field['name'], Type::getType($field['type']), $options ); |
| 81 |
|
} |
| 82 |
|
if(count($tmpIndexes)>0){ |
| 83 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 84 |
|
} |
| 85 |
|
$table = new Table($collection, $columns, $indexes); |
| 86 |
|
return $schemaManager->createTable($table); |
| 87 |
|
} |
|
@@ 119-121 (lines=3) @@
|
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
if (count($tmpIndexes) > 0) { |
| 120 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 121 |
|
} |
| 122 |
|
foreach ($indexes as $index) { |
| 123 |
|
$schemaManager->createIndex($index, $collection); |
| 124 |
|
} |