| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | 64 | public function migrate(Contracts\Manager $manager) |
|
| 10 | { |
||
| 11 | 64 | if (!$manager->getSchema()->hasSpace('meta')) { |
|
| 12 | 64 | $migration = new Bootstrap(); |
|
| 13 | 64 | $migration->migrate($manager); |
|
| 14 | 64 | } |
|
| 15 | |||
| 16 | 64 | $migration = $manager->getMeta()->create('migrations', ['name']); |
|
| 17 | 64 | $migration->addIndex('name'); |
|
| 18 | |||
| 19 | 64 | $manager->create('migrations', Bootstrap::class); |
|
| 20 | 64 | $manager->create('migrations', self::class); |
|
| 21 | 64 | } |
|
| 22 | } |
||
| 23 |