migration = $factory; } public function doUpdate(Updater $updater) { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } public function getMigrations(Updater $updater) { return array( $this->migration->db->changeColumnType('alert_triggered', 'compared_to', 'SMALLINT( 4 ) UNSIGNED NOT NULL DEFAULT 1'), $this->migration->db->changeColumnType('alert', 'compared_to', 'SMALLINT( 4 ) UNSIGNED NOT NULL DEFAULT 1'), ); } }