class Core\Migrations \ InstallBootstrapGenerator


Allows migrations to be generated at runtime. Generates the necessary tables that should be created in a fresh Openclerk install. The files in bootstrap/*.sql should never be changed and should be permanent.


Method Summary

Name Description
generateMigrations()
getName()
getParents() Get all parent Migrations that this migration depends on, as a list
getSQLs() Get all the SQL files we want to create block counts for.

Inherited Method Summary

Name Description
apply(Connection $db) Apply only the current migration. (from Migration)
getAllParents() Get all our parent Migrations along with all of its parents migrations into one unique array. (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)
isApplied(Connection $db) (from Migration)
tableExists(Connection $db, $table) Used e.g. in BaseMigration (from Migration)

public function generateMigrations()


public function getName()

Overrides:
getName()

public function getParents()

Get all parent Migrations that this migration depends on, as a list (from getParents)

Overrides:
getParents()

public function getSQLs()

Get all the SQL files we want to create block counts for.