the asset type to make it. * NULL, or a kind it doesn't name, keeps the guessed type. * * Re-runnable: it only adds the column where it isn't. */ defined('FROM_DB_UPDATER') || die("Direct file access is not allowed"); $itflow_column = mysqli_query($mysqli, "SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'rmm_providers' AND COLUMN_NAME = 'rmm_provider_asset_types' LIMIT 1"); if ($itflow_column && mysqli_num_rows($itflow_column) === 0) { mysqli_query($mysqli, "ALTER TABLE `rmm_providers` ADD `rmm_provider_asset_types` varchar(1000) DEFAULT NULL AFTER `rmm_provider_alerts_note`"); }