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

This package is auto-updated.

Last update: 2022-06-04 17:30:21 UTC


README

Build Status Packagist

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.