Class Migration
Class Migration definition.
Methods summary
public
|
|
public
|
|
public
|
#
runDown( )
Executes previous migration.
Executes previous migration.
|
private
|
#
afterUp( )
After next migration execution hook.
After next migration execution hook.
|
private
|
#
afterDown( )
After previous migration execution hook.
After previous migration execution hook.
|
private
|
#
beforeUp( )
Before next migration execution hook.
Before next migration execution hook.
|
private
|
#
beforeDown( )
Before previous migration execution hook.
Before previous migration execution hook.
|
abstract protected
|
#
up( )
Up (next) method definition.
Up (next) method definition.
|
abstract protected
|
#
down( )
Down (previous) method definition.
Down (previous) method definition.
|
protected
|
#
createTable( string $tableName, array $columns, string $engine = 'MyISAM' )
Creates a table.
Parameters
- $tableName
- Table name.
- $columns
- Array of column names.
- $engine
- Storage engine type.
|
protected
|
#
dropTable( string $tableName )
Drops a table.
Parameters
|
protected
|
#
createColumns( string $tableName, array $columns )
Creates columns.
Parameters
- $tableName
- Table name.
- $columns
- Array of column names.
|
protected
|
#
dropColumns( string $tableName, array $columns )
Drop columns.
Parameters
- $tableName
- Table name.
- $columns
- Array of column names.
|
protected
|
#
createIndex( )
Creation of index method.
Creation of index method.
|
protected
|
|
private
array
|
#
parseColumn( string $options )
Parses a column options.
Parameters
- $options
- Options to parse.
Returns
array
|
Properties summary
public
string
|
$version
Verison number container.
Verison number container.
|
|
private
boolean
|
$skip
Whether to skip execution flag.
Whether to skip execution flag.
|
|