class Db \ BaseMigration


A migration for the migrations table.


Method Summary

Name Description
apply(Connection $db) Apply only the current migration.
getParents() The BaseMigration has no parents.
isApplied(Connection $db) Override the default function to check that a table exists.

Inherited Method Summary

Name Description
getAllParents() Get all our parent Migrations along with all of its parents migrations into one unique array. (from Migration)
getName() (from Migration)
hasPending(Connection $db) (from Migration)
install(Connection $db, Logger $log) Install the current migration and any parent migrations that this migration depends on. (from Migration)
tableExists(Connection $db, $table) Used e.g. in BaseMigration (from Migration)

public function apply(Connection $db)

Apply only the current migration.

Overrides:
apply(Connection $db)
Returns:
true on success or false on failure

public function getParents()

The BaseMigration has no parents.

Overrides:
getParents()

public function isApplied(Connection $db)

Override the default function to check that a table exists.

Overrides:
isApplied(Connection $db)
Returns:
true if this migration is applied