abstract class Migration

Supports database migration operations.

Methods

__construct()

Creates instance of Migration class.

void
aclSetup(string $table)

Setup acl table's initial fields during first db migration.

static int
getNextBatch()

Get value for batch field for next set of migrations.

void
down()

Rollback the migration.

void
up()

Execute the migration.

Details

at line 37
__construct()

Creates instance of Migration class.

at line 48
void aclSetup(string $table)

Setup acl table's initial fields during first db migration.

Parameters

string $table

Name of acl table used to test that we are performing operations on correct table.

Return Value

void

at line 60
static int getNextBatch()

Get value for batch field for next set of migrations.

Return Value

int

Value for batch field to be used in next migration run.

at line 69
abstract void down()

Rollback the migration.

Return Value

void

at line 88
abstract void up()

Execute the migration.

Return Value

void