PHP Class Pheasant\Migrate\Migrator

Show file Open project: lox/pheasant Class Usage Examples

Public Methods

Method Description
__construct ( $pheasant = null )
create ( $table, $schema ) Creates the underlying tables for a schema, dropping any tables of the same names
destroy ( $schema, $table = null ) Destroy tables and sequences for a Schema
initialize ( $schema, $table = null ) Sets up an tables and sequences for a Schema

Private Methods

Method Description
_connection ( $schema )
_mapper ( $schema )

Method Details

__construct() public method

public __construct ( $pheasant = null )

create() public method

Creates the underlying tables for a schema, dropping any tables of the same names
Deprecation: use initialize
public create ( $table, $schema )

destroy() public method

Destroy tables and sequences for a Schema
public destroy ( $schema, $table = null )

initialize() public method

Sets up an tables and sequences for a Schema
public initialize ( $schema, $table = null )