pangolinkeys/backup-migrations
Composer 安装命令:
composer require pangolinkeys/backup-migrations
包简介
A package that takes a backup of the database before running a migration
README 文档
README
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.
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-12