public function init() { // check for table $db = $this->getDbConnection(); if ($db->schema->getTable($db->tablePrefix . $this->migrationTable) === null) { $this->createMigrationHistoryTable(); } return parent::init(); }