2016-11-22 66 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');