开发者

Cakephp migration - schema.php could not be loaded

开发者 https://www.devze.com 2023-02-02 02:41 出处:网络
Created schema file locally, using the cakephp console. Commit/Push to repo with git. From staging server, pull same branch.

Created schema file locally, using the cakephp console.

Commit/Push to repo with git.

From staging server, pull same branch.

Now, from cakephp console on staging server, trying to run "cake schema update" but get the following error;

Welcome to CakePHP v1.3.3 Console
------开发者_JAVA百科---------------------------------------------------------
App : app
Path: /var/site/app
---------------------------------------------------------------
Cake Schema Shell
---------------------------------------------------------------
Performing a dry run.
/var/site/app/config/schema/schema.php could not be loaded


For some reason I have to define the class name of the schema file, e.g.;

cake schema update App -f

Still not figured out how to run an update on a snapshot file :(

0

精彩评论

暂无评论...
验证码 换一张
取 消