Skip to content

Commit

Permalink
Merge pull request #192 from PortableStudios/fix/migrations
Browse files Browse the repository at this point in the history
Fix migration names
  • Loading branch information
kyoungportable authored Oct 17, 2024
2 parents 22b2f58 + 3fb7798 commit a51c365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Providers/FilaCmsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ protected function getMigrationFileName(string $migrationFileName): string
{
$timestamp = date('Y_m_d_His');

// Remove the auto_ prefix from the migration file name
$migrationFileName = preg_replace("/auto\_[0-9]+\_/", "", $migrationFileName);

$filesystem = $this->app->make(Filesystem::class);

return Collection::make([$this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR])
Expand Down

0 comments on commit a51c365

Please sign in to comment.