Migrate DB is a package by Andrey Helldar to migrate one database to another in Laravel apps. Configuring two databases in the config/database.php
file, you can use the connection name to run the migration:
1php artisan db:migrate \2 --schema-from=example \3 --schema-to=example2
The command will perform all migrations on the source and destination databases and transfer records from the first database to the second.
Currently, this package supports the following databases:
- MySQL
- PostgreSQL
- MSSQL
You can learn more about this package, get full installation instructions, and view the source code on GitHub.
0 comments:
Post a Comment
Thanks