josh-taylor / migrate-sql
This package is abandoned and no longer maintained.
No replacement package was suggested.
Display the SQL for a migration in Laravel
1.1.1
2018-10-04 08:57 UTC
Requires
- php: ^7.0
- illuminate/console: ~5.5.0|~5.6.0|~5.7.0
- illuminate/database: ~5.5.0|~5.6.0|~5.7.0
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0
Requires (Dev)
- orchestra/testbench: ^3.7
- phpunit/phpunit: ^7.1
README
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.
Installation
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.
Usage
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
Testing
Run the tests with:
vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.