awkwardideas / Migrator by awkwardideas

MySQL to Laravel Migrator
57
5
3
Package Data
Maintainer Username: awkwardideas
Maintainer Contact: chad@awkwardideas.com (Chad Haney)
Package Create Date: 2016-02-22
Package Last Update: 2017-12-02
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:11:36
Package Statistics
Total Downloads: 57
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Migrator: MySQL to Laravel Migration Generator

Latest Stable Version Total Downloads Latest Unstable Version License

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