2016-11-22 59 views
0

我试图使用命令添加迁移包把CakePHP 3

composer require cakephp/migration:~1.0 

迁移数据包添加到CakePHP的3.3,但我收到了如下结果:

./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - The requested package cakephp/migration could not be found in any version, there may be a typo in the package name. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum-stability setting 
    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. 

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

Installation failed, reverting ./composer.json to its original content. 

任何建议,以解决这个?

+1

这是“migration ** s **”** https://github.com/cakephp/migrations#installation** – ndm

回答

0

由于@ndm说它的“迁移”,也应该默认情况下已安装,如果你用composer或类似的东西创建你的应用程序。要激活它,你只需要在指定的bootstrap.php中加载它here
Plugin :: load('Migrations');