2017 © Pedro Peláez
 

library migration-wrangler

Import and export migration table data in Laravel projects.

image

srlabs/migration-wrangler

Import and export migration table data in Laravel projects.

  • Thursday, February 15, 2018
  • by SRLabs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Migration Wrangler

Build Status, (*1)

Sometimes you may find that you want to port a migrations table from one database to another. This might occur if you are refactoring your migrations and want to update your production database migrations table to allow future migration tasks to remain in sync with your development database. This tool provides three artisan commands that should make that process easier., (*2)

Installation

composer require srlabs/migration-wrangler

This package uses automatic Package Discovery; once your composer installation is complete, you should be good to go. If not, you may need to manually register the service provider., (*3)

Usage

There are three new artisan commands provided by this package:, (*4)

migrations:export

This command takes data from an existing migrations table and writes it to a json file., (*5)

Options: - database: The name of the database connection you want to pull data from - filepath: The destination folder for the generated json file - pretty: Optionally write the json in an easily readable format., (*6)

migrations:import

This command takes a json file generated by the export command and uses it to populate the migrations table, replacing the existing data. You must specify a path to the json file as the first argument to this command., (*7)

Options: - database: The name of the database connection you want to insert data into - pretend: Attempt the import process without making any actual changes to the database., (*8)

migrations:generate

This command traverses your migrations folder and generates a json file based on the migrations found there. It will automatically put each migration into a separate batch., (*9)

Options: - path: The location of the migrations folder you want to inspect - filepath: The destination folder for the generated json file - pretty: Optionally write the json in an easily readable format., (*10)

The Versions

15/02 2018

dev-master

9999999-dev

Import and export migration table data in Laravel projects.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel migrations

15/02 2018

v2.0.0

2.0.0.0

Import and export migration table data in Laravel projects.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel migrations

26/01 2018

v1.0.1

1.0.1.0

Import and export migration table data in Laravel projects.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel migrations

24/01 2018

v1.0.0

1.0.0.0

Import and export migration table data in Laravel projects.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel migrations