PHP Class Phpmig\Adapter\Zend\DbAdapter

Inheritance: implements Phpmig\Adapter\AdapterInterface
Show file Open project: davedevelopment/phpmig

Public Methods

Method Description
__construct ( Zend\Db\Adapter\Adapter $adapter, string $tableName )
createSchema ( ) : Phpmig\Adapter\AdapterInterface Create Schema
down ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface Down
fetchAll ( ) : array Get all migrated version numbers
hasSchema ( ) : boolean Is the schema ready?
up ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface Up

Private Methods

Method Description
tableGateway ( ) : Zend\Db\TableGateway\TableGateway

Method Details

__construct() public method

public __construct ( Zend\Db\Adapter\Adapter $adapter, string $tableName )
$adapter Zend\Db\Adapter\Adapter
$tableName string

createSchema() public method

Create Schema
public createSchema ( ) : Phpmig\Adapter\AdapterInterface
return Phpmig\Adapter\AdapterInterface

down() public method

Down
public down ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface
$migration Phpmig\Migration\Migration
return Phpmig\Adapter\AdapterInterface

fetchAll() public method

Get all migrated version numbers
public fetchAll ( ) : array
return array

hasSchema() public method

Is the schema ready?
public hasSchema ( ) : boolean
return boolean

up() public method

Up
public up ( Phpmig\Migration\Migration $migration ) : Phpmig\Adapter\AdapterInterface
$migration Phpmig\Migration\Migration
return Phpmig\Adapter\AdapterInterface