|
@@ 74-76 (lines=3) @@
|
| 71 |
|
|
| 72 |
|
$columns[] = new Column($field['name'], Type::getType($field['type']), $options ); |
| 73 |
|
} |
| 74 |
|
if(count($tmpIndexes)>0){ |
| 75 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 76 |
|
} |
| 77 |
|
$table = new Table($collection, $columns, $indexes); |
| 78 |
|
return $schemaManager->createTable($table); |
| 79 |
|
} |
|
@@ 111-113 (lines=3) @@
|
| 108 |
|
} |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
if (count($tmpIndexes) > 0) { |
| 112 |
|
$indexes[] = new Index($collection . '_IDX', $tmpIndexes, false, false); |
| 113 |
|
} |
| 114 |
|
foreach ($indexes as $index) { |
| 115 |
|
$schemaManager->createIndex($index, $collection); |
| 116 |
|
} |