@@ 911-917 (lines=7) @@ | ||
908 | */ |
|
909 | private function shouldExecuteMigration($direction, Version $version, $to, $migrated) |
|
910 | { |
|
911 | if ($direction === Version::DIRECTION_DOWN) { |
|
912 | if (!in_array($version->getVersion(), $migrated)) { |
|
913 | return false; |
|
914 | } |
|
915 | ||
916 | return $version->getVersion() > $to; |
|
917 | } |
|
918 | ||
919 | if ($direction === Version::DIRECTION_UP) { |
|
920 | if (in_array($version->getVersion(), $migrated)) { |
|
@@ 919-925 (lines=7) @@ | ||
916 | return $version->getVersion() > $to; |
|
917 | } |
|
918 | ||
919 | if ($direction === Version::DIRECTION_UP) { |
|
920 | if (in_array($version->getVersion(), $migrated)) { |
|
921 | return false; |
|
922 | } |
|
923 | ||
924 | return $version->getVersion() <= $to; |
|
925 | } |
|
926 | } |
|
927 | ||
928 | /** |