awkwardideas/migrator
| Install | |
|---|---|
composer require awkwardideas/migrator |
|
| Latest Version: | 1.0.0.0 |
| PHP: | >=5.6.4 |
| License: | MIT |
| Last Updated: | Dec 2, 2017 |
| Links: | GitHub · Packagist |
Migrator: MySQL to Laravel Migration Generator
Install Via Composer
composer require awkwardideas/migrator
Add to Laravel App Config
/*
* Package Service Providers...
*/
AwkwardIdeas\Migrator\MigratorServiceProvider::class,
Commands via Artisan
Command line actions are done via artisan. The host, username, password from the .env file are used for making the connection.
php artisan migrator:clean
Removes all migrations files from the migrations folder
php artisan migrator:truncate
Truncates the provided database.
--database= Database to truncate --force Bypass confirmations
php artisan migrator:purge
Combination of Clean and Truncate
Options:
--database= Database to truncate --force Bypass confirmations
php artisan migrator:prepare
Create migration files using the database information in .env
Options:
--from= Database to migrate from --force Bypass confirmations
php artisan migrator:migrate
Create migration files using the database information in .env and run php artisan migrate
Options:
--from= Database to migrate from --to= Database to migrate to (for truncation) --force Bypass confirmations
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.0.0 | >=5.6.4 | MIT |