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

This package is not auto-updated.

Last update: 2019-05-17 14:18:44 UTC


README

Codacy Badge StyleCI License Total Downloads Latest Stable Version

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

  1. Publish the configuration file
    php artisan vendor:publish --tag=dbsync-config`
    
  2. 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 file
  • php 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.