migration = $factory; } public function getMigrations(Updater $updater) { return array( $this->migration->db->addColumn('logger_message', 'tag', 'VARCHAR(50) NULL', 'idlogger_message'), $this->migration->db->addColumn('logger_message', 'level', 'TINYINT', 'timestamp'), ); } public function doUpdate(Updater $updater) { // add tag & level columns to logger_message table $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } }