|
@@ 684-686 (lines=3) @@
|
| 681 |
|
if ($this->migrations === null) { |
| 682 |
|
$phpFiles = $this->getMigrationFiles(); |
| 683 |
|
|
| 684 |
|
if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) { |
| 685 |
|
$this->getOutput()->writeln("Migration file " . implode(", ", $phpFiles)); |
| 686 |
|
} |
| 687 |
|
|
| 688 |
|
// filter the files to only get the ones that match our naming scheme |
| 689 |
|
$fileNames = []; |
|
@@ 695-697 (lines=3) @@
|
| 692 |
|
|
| 693 |
|
foreach ($phpFiles as $filePath) { |
| 694 |
|
if (Util::isValidMigrationFileName(basename($filePath))) { |
| 695 |
|
if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) { |
| 696 |
|
$this->getOutput()->writeln("Valid migration file " . implode(", ", $phpFiles)); |
| 697 |
|
} |
| 698 |
|
|
| 699 |
|
$version = Util::getVersionFromFileName(basename($filePath)); |
| 700 |
|
|
|
@@ 755-759 (lines=5) @@
|
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
$versions[$version] = $migration; |
| 755 |
|
} else { |
| 756 |
|
if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) { |
| 757 |
|
$this->getOutput()->writeln("Invalid migration file " . implode(", ", $phpFiles)); |
| 758 |
|
} |
| 759 |
|
} |
| 760 |
|
} |
| 761 |
|
|
| 762 |
|
ksort($versions); |