/** * Initializes the migration. */ public function init() { $connection = Connection::className(); if (!$this->db instanceof $connection) { throw new InvalidConfigException('The required component is not specified.'); } }
public function execute($params = []) { $this->db->execute($this->_sql); }