laravel-enso / dbsyncmigrations
This package is abandoned and no longer maintained.
The author suggests using the laravel-enso/migrator package instead.
Database synchronization migrations-generator for Laravel
2.1.2
2018-01-11 08:51 UTC
Requires
- php: >=7.1.0
- laravel-enso/core: 2.1.*
- laravel/framework: 5.5.*
README
Database synchronization migrations-generator for Laravel.
Features
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.)
Installation Steps
- Publish the configuration file
php artisan vendor:publish --tag=dbsync-config`
- Add the
DbSyncMigrations
trait 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
Publishes
php artisan vendor:publish --tag=dbsync-config
- configuration filephp artisan vendor:publish --tag=enso-config
- a common alias for when wanting to update the config, once a newer version is released
Notes
The Laravel Enso Core package comes with this package included.
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.