Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - how to get list of migrations to do?

I have a long list of migration files and don't want to compare what already ran and what is suppopsed to run next time when I do php artisan migrate Is there a way how to display such list ( without actually installing new 3rd party package)?

like image 337
JohnyProkie Avatar asked Mar 03 '23 15:03

JohnyProkie


2 Answers

Better user php artisan migrate:status

This will basically show you the migrations which have been run and which are pending as well

like image 184
ameer nagvenkar Avatar answered Mar 06 '23 05:03

ameer nagvenkar


You can use php artisan migrate --pretend to dump a list of all database queries that would be ran if you would migrate. But there is no command to list the migration files that would be executed.

like image 32
Jerodev Avatar answered Mar 06 '23 05:03

Jerodev