Class Socialveo\Core\library\db\Migration

InheritanceSocialveo\Core\library\db\Migration

Class Migration

Property Details

$_options protected property
protected array $_options null
$_task protected property
protected Phalcon\CLI\Task $_task null

Method Details

__construct() public method

Migration constructor.

public void __construct ( Phalcon\CLI\Task $task, $options )
$task Phalcon\CLI\Task
$options array
columnExists() public method

Checks whether column exists

public boolean columnExists ( $table, $column )
$table string
$column string
connection() public method

public Phalcon\Db\AdapterInterface|Phalcon\Db\Adapter\Pdo\Mysql connection ( )
execute() public method

public boolean execute ( $sql, array $params = [], $tryCatch false )
$sql string
$params array
$tryCatch boolean
foreignKeyExists() public method

Checks whether foreign key exists

public boolean foreignKeyExists ( $table, $fk )
$table string
$fk string
getColumns() public method

Get columns of table

public array getColumns ( $table )
$table string
keyExists() public method

Checks whether key exists

public boolean keyExists ( $table, $key )
$table string
$key string
tableExists() public method

Checks whether table exists

public boolean tableExists ( $table )
$table string