Schema is a command-line database management utility for automating programmer chores.
Schema is CakePHP's database management utility. This helps you maintain versions of of your database.
Create database from Schema object Should be called via the run method
Update database with Schema object Should be called via the run method
Dump Schema object to sql file Use the write
param to enable and control SQL file output location. Simply using -write will write the sql file to the same dir as the schema file. If -write contains a full path name the file will be saved there. If -write only contains no DS, that will be used as the file name, in the same dir as the schema file.
Read database and Write schema object accepts a connection as first arg or path to save as second arg
Read and output contents of schema object path to read as second arg
_create( CakeSchema $Schema , string $table null )
Create database from Schema object Should be called via the run method
CakeSchema
$Schema
$table
optional null _run( array $contents , string $event , CakeSchema $Schema )
Runs sql from _create() or _update()
$contents
$event
CakeSchema
$Schema
_update( CakeSchema $Schema , string $table null )
Update database with Schema object Should be called via the run method
CakeSchema
$Schema
$table
optional null dump( )
Dump Schema object to sql file Use the write
param to enable and control SQL file output location. Simply using -write will write the sql file to the same dir as the schema file. If -write contains a full path name the file will be saved there. If -write only contains no DS, that will be used as the file name, in the same dir as the schema file.
generate( )
Read database and Write schema object accepts a connection as first arg or path to save as second arg
getOptionParser( )
Gets the option parser instance and configures it.
ConsoleOptionParser
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-SchemaShell.html