Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.864 |
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 | } |
||
15 | |||
16 | $migration = $manager->getMeta()->create('migrations', ['name']); |
||
17 | $migration->addIndex('name'); |
||
18 | |||
19 | $manager->create('migrations', Bootstrap::class); |
||
20 | $manager->create('migrations', self::class); |
||
21 | } |
||
22 | } |
||
23 |