Skip to content

Extensions of the Laravel migrate and seed commands which takes a backup of the database before they run.

Notifications You must be signed in to change notification settings

pangolinkeys/backup-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backup-migrations

Repository to perform a database backup before migrations and seeds are run.

Require this package using composer require pangolinkeys/backup-migrations

Register the BackupMigrationsServiceProvider:class service provider in the applications providers array.

Run php artisan vendor:publish to publish the config file.

Run the commands

php artisan migrate

php artisan db:seed

as usual. In the background a backup dump of the database will be taken.

To restore the most recent backup run

php artisan migrate:restore

To specify a backup use the

--file=

option.

About

Extensions of the Laravel migrate and seed commands which takes a backup of the database before they run.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages