baleen/b2tf
Composer 安装命令:
composer require baleen/b2tf
包简介
A plugin to commemorate October 21, 2015 - #BackToTheFuture Day
README 文档
README
A plugin to commemorate October 21, 2015 - #BackToTheFuture Day.
If Baleen detects that you're migrating past October 21, 2015 you'll see a special message in your console.
Installation (Composer)
composer install baleen/b2tf:dev-master
Then run vendor/bin/baleen init. This will generate a file called .baleen.yml
Open that file for editing and add the following lines at the beginning or end:
plugins: 20151021: \Baleen\B2tf\BackToTheFuturePlugin
In the VERY odd case you already have a plugin at priority "20151021" then change the number to something else
Usage
You must have at least two migration files:
- One with a timestamp before October 21, 2015
- Another one with a timestamp after that date. You can create one by running
vendor/bin/baleen create.
Then just migrate (vendor/bin/baleen migrate) to see the message!
Q&A
I don't have any migrations prior to October 21st. How can I test this?
No worries, easy fix: just take the DeLorean back to the past and choose Baleen CLI as your migrations framework!
Alternative:
- Add a new class in your migrations directory. The filename and class-name must coincide, make it something old
like for example
v19851026090000. - Make it implement
Baleen\Migrations\Migration\MigrationInterface. - You now have a migration in the past. Now create one in the future by running
vendor/bin/baleen create. - Assuming you also followed the installation instructions above, you're good to go!
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-21