mtolhuijs / laravel-database-synchronizer
Synchronize your production and development databases with a simple command
Requires
- ext-pdo: *
- doctrine/dbal: ~2.3
- illuminate/support: ~5|~6|~7|~8
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0|~4.0|~5.0|~6.0
- phpunit/phpunit: ~7.0|~8.0|~9.0|~10.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-11-29 05:56:54 UTC
README
Keep your production and development databases in sync
This package will completely synchronize the database specified as "from" and "to" in the config or through the command options.
Want to collaborate? Nice! Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require mtolhuijs/laravel-database-synchronizer
Optionally you can run php artisan vendor:publish --provider mtolhuijs\LDS\DatabaseSynchronizerServiceProvider
which will create a config file in the root config folder to adjust the behavior of the package.
Usage
This package comes with 1 command:
php artisan db:sync
Synchronizes your "from" database with your "to" database
db:sync
{ --from= : Synchronize data from this database instead of the one specified in config }
{ --to= : Synchronize data to this database instead of the one specified in config }
{ --t|tables=* : Only run for given table(s) }
{ --st|skip-tables=* : Skip given table(s) }
{ --l|limit= : Limit query rows (defaults to 5000) }
{ --truncate : Truncate before inserting data }
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.