Skip to content

Commit

Permalink
Merge pull request #154 from ahmadsyamim/patch-1
Browse files Browse the repository at this point in the history
features: sort tables before generate
  • Loading branch information
kitloong authored Feb 18, 2023
2 parents 6e6c773 + 5d70ec7 commit f3a40c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MigrateGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public function handle(): void

$this->info('Using connection: ' . $connection . "\n");

$tables = $this->filterTables();
$views = $this->filterViews();
$tables = $this->filterTables()->sort()->values();
$views = $this->filterViews()->sort()->values();
$generateList = $tables->merge($views)->unique();

$this->info('Generating migrations for: ' . $generateList->implode(',') . "\n");
Expand Down

0 comments on commit f3a40c7

Please sign in to comment.