ndoubismarck / cakephp-migrations
基于Phinx的数据库迁移插件,用于CakePHP
3.1.1
2021-10-19 19:47 UTC
Requires
- php: >=7.2.0
- cakephp/cache: ^4.0.5
- cakephp/orm: ^4.0.5
- robmorgan/phinx: ^0.12
Requires (Dev)
- cakephp/bake: ^2.1.0
- cakephp/cakephp: ^4.0.5
- cakephp/cakephp-codesniffer: ~4.1
- phpunit/phpunit: ~8.5.0
Suggests
- cakephp/bake: If you want to generate migrations.
- dereuromark/cakephp-ide-helper: If you want to have IDE suggest/autocomplete when creating migrations.
This package is auto-updated.
Last update: 2024-09-26 20:09:34 UTC
README
这是一个用于CakePHP的数据库迁移系统。
该插件由一个用于Phinx迁移库的CakePHP壳包装组成。
此分支适用于CakePHP 4.x。有关详细信息,请参阅版本映射。
安装
您可以使用Composer将此插件安装到您的CakePHP应用程序中。
运行以下命令
composer require ndoubismarck/cakephp-migrations
配置
您可以使用shell命令加载此插件
bin/cake plugin load Migrations
或者您可以在应用程序的src/Application.php文件中手动添加加载语句
public function bootstrap() { parent::bootstrap(); $this->addPlugin('Migrations'); }
此外,您还需要在您的config/app.php文件中配置默认数据库配置。
文档
该插件的完整文档可以在CakePHP食谱中找到。