Easy data transfer from one database to another.
Laravel Migrate DB is a package by Andrey Helldar to migrate one database to another in Laravel apps.
⚡ Installation
To get the latest version of Migrate DB
, simply require the project using Composer:
$ composer require andrey-helldar/migrate-db --dev
Or manually update require-dev
block of composer.json
and run composer update
.
{
"require-dev": {
"andrey-helldar/migrate-db": "^1.0"
}
}
✌ Compatibility
Currently, this package supports the following PHP, Laravel, and Database:
- PHP
- ^7.2.5
- ^8.0
- Laravel
- ^70
- ^8.0
- Database
- MySQL
- PostgreSQL
- MSSQL
Using
Configuring two databases in the config/database.php
file, you can use the connection name to run the migration:
$ php artisan db:migrate --schema-from=foo --schema-to=bar
You can learn more about this package, get full installation instructions, and view the source code on GitHub.