|
@@ 121-123 (lines=3) @@
|
| 118 |
|
$class = Str::firstIn($fullName, '-'); |
| 119 |
|
|
| 120 |
|
// check if class is instance of migration interface |
| 121 |
|
if (!class_exists($class) || !is_a($class, 'Ffcms\Core\Migrations\MigrationInterface', true)) { |
| 122 |
|
return false; |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
// implement migration |
| 126 |
|
$init = new $class($fullName); |
|
@@ 161-163 (lines=3) @@
|
| 158 |
|
$class = Str::firstIn($fullName, '-'); |
| 159 |
|
|
| 160 |
|
// check if class is instance of migration interface |
| 161 |
|
if (!class_exists($class) || !is_a($class, 'Ffcms\Core\Migrations\MigrationInterface', true)) { |
| 162 |
|
return false; |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
// init migration and execute down method |
| 166 |
|
$init = new $class($fullName); |