dushevadnqka / migmag
主要目的是通过添加从特定文件运行迁移的能力来扩展Laravel 5(5.1,5.2)迁移。
v2.3.1
2016-06-27 20:11 UTC
This package is not auto-updated.
Last update: 2024-09-18 19:01:59 UTC
README
安装
- 版本 2.0(与laravel 5.2兼容)通过添加
"dushevadnqka/migmag": "2.*"
- 版本 1.0(与laravel 5.1兼容)通过添加
"dushevadnqka/migmag": "1.*"
在你的composer json文件中。
将此行添加到你的config/app.php(在 Providers 数组中)
\Dushevadnqka\Migmag\Providers\MigmagServiceProvider::class
从特定文件执行迁移
php artisan migmag:migrate
然后作为回答输入你的迁移文件路径(不包含扩展名)。
或者
php artisan migmag:migrate --path=path/to/your/migration-file
通过特定迁移文件获取迁移状态
php artisan migmag:migrate:status
然后作为回答输入你的迁移文件路径(不包含扩展名)。
或者
php artisan migmag:migrate:status --path=path/to/your/migration-file
通过特定迁移名称执行迁移重置
php artisan migmag:migrate:reset
然后作为回答输入你的迁移文件名称(不包含扩展名)。
或者
php artisan migmag:migrate:reset --migration=migration-file-name
为特定迁移执行迁移刷新
php artisan migmag:migrate:refresh
然后作为回答输入你的迁移文件路径(不包含扩展名)。
或者
php artisan migmag:migrate:refresh --path=path/to/your/migration-file