0) { $itflow_send_exists = mysqli_query($mysqli, "SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'sms_providers' AND COLUMN_NAME = 'sms_provider_send' LIMIT 1"); if (!$itflow_send_exists || mysqli_num_rows($itflow_send_exists) === 0) { mysqli_query($mysqli, "ALTER TABLE `sms_providers` ADD `sms_provider_send` tinyint(1) NOT NULL DEFAULT 1 AFTER `sms_provider_active`"); } }