Property | Type | Description | |
---|---|---|---|
$_is_plugin | True is shell is used as part of a plugin | ||
$_usePrefix | Should we use a table prefix, as specified in DB config | ||
$background | |||
$current_migration | Current migration data | ||
$dataSource | The datasource that should be used. | ||
$db | The database object | ||
$empty_migration | Empty migration data | ||
$foreground | |||
$id_format | |||
$migrations | Array of migrations | ||
$options | |||
$schema_table | Name of the schema migrations table | ||
$styles | |||
$target_migration | Target migration data | ||
$types | DB column/field types | ||
$unmigrated_migrations | Un-migrated migrations | ||
$use_uuid | If true, will use Cake's UUID's for primary key. | ||
$uuid_format |
Method | Description | |
---|---|---|
__buildUpSchema ( $tableName ) | ||
_array2Sql ( $array ) | ||
_buildSchema ( array $tables = null, $allTables = false ) : unknown | Burns the provided tables Schema into a YAML file suitable for migrations | |
_buildYaml ( $tables ) | ||
_colorize ( $text = '', $style = null ) | ||
_filterMigrationTable ( $myTables ) | ||
_fromDb ( ) | ||
_getMigrations ( ) | ||
_getName ( ) : the | Forces the user to specify the model he wants to bake, and returns the selected model name. | |
_getProperties ( $props ) | ||
_getTables ( ) | Gets the tables in DB according to your connection configuration | |
_hasMigrations ( ) | ||
_initDatabase ( ) | ||
_listAll ( ) : output | Outputs the a list of possible models or controllers from database | |
_loadVendor ( $class ) | ||
_mate ( string $file ) | Gives the user an option to open a specified file in Textmate | |
_parsePhp ( $file ) | ||
_printQuery ( ) | ||
_run ( $target_direction = null ) | ||
_sortMigrations ( $dir = 'up' ) | ||
_startMigration ( $id, $direction ) | ||
_supportsColors ( ) | ||
_versionIt ( $num ) | Converts migration number to a minimum three digit number. | |
_welcome ( ) | ||
all ( ) | Runs all migrations from the current version down and back up to the latest version. | |
down ( ) | Migrates down to the previous version | |
err ( $str ) | ||
full_schema ( ) | Migrates the full_schema.yml migration file. | |
g ( ) | ||
gen ( ) | Aliases for generate method | |
generate ( ) | Generates a migration file. You can pass the file name on the command line, or wait for the prompt. | |
h ( ) | Aliases for help method | |
help ( ) | Help method | |
info ( ) | Prints list of migration files and provides info about each one | |
main ( ) | Main method: migrates to the latest version. | |
out ( string $string = '', boolean $newline = true ) | Modifies the out method for prettier formatting | |
reset ( ) | Reset's migration version without running migrations up or down and drops all tables | |
startup ( ) | ||
up ( ) | Migrates up to the next version |
public _buildSchema ( array $tables = null, $allTables = false ) : unknown | ||
$tables | array | |
return | unknown |
public _getName ( ) : the | ||
return | the | model name |
public _getTables ( ) |
public _listAll ( ) : output | ||
return | output |
public _versionIt ( $num ) | ||
$num | The number to convert |
public all ( ) |
public generate ( ) |
public info ( ) |
public reset ( ) |
public $_usePrefix |