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