ronanversendaal/migration-describer

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.0) of this package.

Takes a migration and outputs the SQL to be executed

1.0.0 2016-10-09 11:01 UTC

This package is not auto-updated.

Last update: 2020-08-21 20:31:00 UTC


README

A small Laravel 5.3 package for describing one or more migration files as SQL.

For Laravel 5.1, check the 1.0.0 release

#Installation

Use composer to install the package

composer require ronanversendaal/migration-describer:dev-release/1.0.1

Add the service provider to config/app.php

Ronanversendaal\MigrationDescriber\MigrationDescriberServiceProvider::class

#Usage

Basic

php artisan migrate:describe

This will display a list of your migrations to choose from.

Single files and wildcards

The --file option allows one migration file to describe, with support of wildcards.

php artisan migrate:describe --file=database/migrations/2016_10_10_create_users_table.php

Or

php artisan migrate:describe --file=database/migrations/2016_10*

Options

 --file      The migration file to read. Supports wildcards
 --database  The database connection to use.