Skip to content
This repository has been archived by the owner on Jun 3, 2018. It is now read-only.

Laravel Enso migration generator so you can easily deploy changes made to your local models through a simple push and a 'migrate' command

License

Notifications You must be signed in to change notification settings

laravel-enso/DbSyncMigrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DB Sync Migrations

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.

About

Laravel Enso migration generator so you can easily deploy changes made to your local models through a simple push and a 'migrate' command

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages