I have a number of Plugins for my CakePHP 2.3 app which I use the schema migrations built in to maintain DB table structure.
Some of them work without a problem, but on others I get the following error:
Richs-MacBook-Pro:mhd rich$ ./Console/cake schema update -p PipPages
Welcome to CakePHP v2.3.0 Console
---------------------------------------------------------------
App : mhd
Path: /Users/rich/sites/mhd/
---------------------------------------------------------------
Cake Schema Shell
---------------------------------------------------------------
The chosen schema could not be loaded. Attempted to load:
File: /Users/rich/sites/mhd/Plugin/PipPages/Config/Schema/schema.php
Name: PipPage
I just want to point out a couple of things. My Plugin is called PipPages. In the output, it says it’s trying to load the schema for PipPage – should I be naming my plugins differently?
I have triple-checked that the schema.php file exists for the PipPages plugin, but maybe the plugin should be named PipPage to work with the schema shell?
In the book, they give one plural example: http://book.cakephp.org/2.0/en/plugins.html#plugin-configuration
It seems as if CakePHP is expecting a singular plugin name, but to get around this, you can pass the
nameparam into the Schema Shell:./Console/cake schema update -p PipPages PipPagesThis seems to allow the update to run without errors.