Sometimes it's not possible to run php artisan migrate
and you have to manually run migrations.
This Laravel package adds a command to generate the SQL that a migration will use. It's a bit like the --pretend
option for php artisan migrate
but will show migrations that have already run.
This package requires PHP 7 and Laravel 5.5 or higher.
You can install the package via composer using:
composer require josh-taylor/migrate-sql
This will automatically register the service provider and command.
A new command will be added to your Laravel project.
php artisan migrate:sql
You can view the help screen for more options
php artisan migrate:sql -h
Run the tests with:
vendor/bin/phpunit
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.