cakephp / migrations
基于Phinx的CakePHP数据库迁移插件
4.4.1
2024-09-16 15:16 UTC
Requires
- php: >=8.1
- cakephp/cache: ^5.0
- cakephp/orm: ^5.0
- robmorgan/phinx: ^0.16.0
Requires (Dev)
- cakephp/bake: dev-3.next
- cakephp/cakephp: dev-5.next as 5.1.0
- cakephp/cakephp-codesniffer: ^5.0
- phpunit/phpunit: ^10.5.5 || ^11.1.3
Suggests
- cakephp/bake: If you want to generate migrations.
- dereuromark/cakephp-ide-helper: If you want to have IDE suggest/autocomplete when creating migrations.
- 4.x-dev
- 4.4.1
- 4.4.0
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.x-dev
- 3.9.0
- 3.8.3
- 3.8.2
- 3.8.1
- 3.8.0
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0-RC
- 3.0.0-beta3
- 3.0.0-beta2
- 3.0.0-beta1
- 2.x-dev
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.8.1
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4
- 1.3.x-dev
- 1.3.2
- 1.3.1
- 1.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-4.next
- dev-seedinterface
- dev-fix-querybuilder-deprecation
- dev-4.x-force-autoid
- dev-4.1.1-release
This package is auto-updated.
Last update: 2024-09-21 20:41:19 UTC
README
这是一个用于CakePHP的数据库迁移系统。
插件包括对Phinx迁移库的CakePHP CLI包装器。
此分支用于与CakePHP 5.x一起使用。有关详细信息,请参阅版本映射。
安装
您可以使用Composer将此插件安装到您的CakePHP应用程序中。
运行以下命令
composer require cakephp/migrations
配置
您可以使用shell命令加载插件
bin/cake plugin load Migrations
或者您可以在应用程序的src/Application.php文件中手动添加加载语句
public function bootstrap(): void { parent::bootstrap(); $this->addPlugin('Migrations'); }
此外,您还需要在应用程序的config/app.php文件中配置default
数据库配置。
文档
该插件的完整文档可以在CakePHP食谱中找到。