Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
19 | protected function _execute(array $options) |
||
20 | { |
||
21 | $unexecuted = $this->unexecuted_migrations(); |
||
22 | |||
23 | $up = array(); |
||
24 | $down = array(); |
||
25 | |||
26 | if ($options["version"]) |
||
27 | { |
||
28 | if (in_array($options["version"], $unexecuted)) |
||
29 | { |
||
30 | $up[] = $options["version"]; |
||
31 | } |
||
32 | } |
||
33 | else |
||
34 | { |
||
35 | $up = array_slice($unexecuted, 0, $options['steps']); |
||
36 | } |
||
37 | |||
38 | $this->migrate($up, $down, $options['dry-run'] === NULL); |
||
39 | } |
||
40 | } |
||
41 |