mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-17 07:25:54 +00:00
Ensure that migrations are sorted properly
This commit is contained in:
@@ -248,7 +248,8 @@ class Factory
|
|||||||
->files()
|
->files()
|
||||||
->ignoreDotFiles(true)
|
->ignoreDotFiles(true)
|
||||||
->in(database_path('migrations'))
|
->in(database_path('migrations'))
|
||||||
->name('*.sql');
|
->name('*.sql')
|
||||||
|
->sortByName();
|
||||||
|
|
||||||
/** @var SplFileInfo $migration */
|
/** @var SplFileInfo $migration */
|
||||||
foreach ($migrations as $migration) {
|
foreach ($migrations as $migration) {
|
||||||
|
|||||||
Reference in New Issue
Block a user