\Omega\Database\Migration MigrationInterface

Migration interface.

The MigrationInterface defines methods for specifying fields and executing migrations on a database.

Summary

Methods
Constants
execute()
down()
stringForField()
dropColumn()
No public constants found

Methods

execute()

execute() : void

Execute migration.

Returns

void —

down()

down() : void

Rolls back the migration (drops the table).

Returns

void —

stringForField()

stringForField(\Omega\Database\Migration\Field\AbstractField  $field) : string

String for field.

Parameters

\Omega\Database\Migration\Field\AbstractField $field

Holds an instance of AbstractField.

Returns

string —

Return the string for the field.

dropColumn()

dropColumn(string  $name) : $this

Drop column.

Parameters

string $name

Holds the column name.

Returns

$this —