Database synchronization migrations-generator for Laravel
Database synchronization migrations-generator for Laravel.
Adds the ability to easily sync your model's DB states between development and production, by:
- generating migrations for the models you choose, and then by
- running the generated migrations on your other systems (staging/live/etc.)
- Publish the configuration file
php artisan vendor:publish --tag=dbsync-config`
- Add the
DbSyncMigrationstrait to models you want migrations for
NOTE You may globally disable the migration creation by editing the
config/enso/dbsync.php config file and setting the
dbsync flag to false
php artisan vendor:publish --tag=dbsync-config- configuration file
php artisan vendor:publish --tag=enso-config- a common alias for when wanting to update the config, once a newer version is released
The Laravel Enso Core package comes with this package included.
are welcome. Pull requests are great, but issues are good too.
This package is released under the MIT license.