We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e655969 commit 1496d43Copy full SHA for 1496d43
1 file changed
system/Database/MigrationRunner.php
@@ -532,9 +532,9 @@ public function setSilent(bool $silent)
532
*/
533
protected function getMigrationNumber(string $migration): string
534
{
535
- preg_match('/^\d{4}[_-]?\d{2}[_-]?\d{2}[_-]?\d{6}/', $migration, $matches);
+ preg_match($this->regex, $migration, $matches);
536
537
- return count($matches) ? $matches[0] : '0';
+ return count($matches) ? $matches[1] : '0';
538
}
539
540
/**
0 commit comments