robmcvey
robmcvey

Reputation: 815

Cakephp migration - schema.php could not be loaded

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
---------------------------------------------------------------
App : app
Path: /var/site/app
---------------------------------------------------------------
Cake Schema Shell
---------------------------------------------------------------
Performing a dry run.
/var/site/app/config/schema/schema.php could not be loaded

Upvotes: 6

Views: 2247

Answers (1)

robmcvey
robmcvey

Reputation: 815

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 :(

Upvotes: 9

Related Questions