Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

josh-taylor/migrate-sql

Repository files navigation

Generate the SQL for Laravel migrations

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.