andrey-helldar/migrate-db

This package is abandoned and no longer maintained. The author suggests using the dragon-code/migrate-db package instead.

Easy data transfer from one database to another

v1.2.0 2021-07-06 20:51 UTC

This package is auto-updated.

Last update: 2021-11-20 12:41:20 UTC


README

Migrate DB

Stable Version Unstable Version Total Downloads Github Workflow Status License

Easy data transfer from one database to another

Installation

To get the latest version of Migrate DB, simply require the project using Composer:

$ composer require dragon-code/migrate-db --dev

Or manually update require-dev block of composer.json and run composer update.

{
    "require-dev": {
        "dragon-code/migrate-db": "^2.0"
    }
}

Upgrade from andrey-helldar/migrate-db

  1. In your composer.json file, replace "andrey-helldar/migrate-db": "^1.0" with "dragon-code/migrate-db": "^2.0".
  2. Run the command composer update.
  3. Profit!

Compatibility

Service Versions
PHP ^7.3, ^8.0
Laravel ^8.0
Databases MySQL 5.7+, PostgreSQL 9.5+, MSSQL

Using

Create a new database and set up both connections in the connections section of the config/database.php file, then run the db:migrate console command passing two parameters:

$ php artisan db:migrate --schema-from=foo --schema-to=bar

where:

The command will perform all migrations on the source and destination databases and transfer all records from the old to the new one.

Enjoy 😊

License

This package is licensed under the MIT License.