get_results( "SHOW COLUMNS FROM `{$tableName}` LIKE 'styleSettings'" ); if (!empty($columnExists)) { return true; // Already migrated } // Add styleSettings column $alterQuery = "ALTER TABLE `{$tableName}` ADD COLUMN `styleSettings` TEXT NULL AFTER `integrationSettings`"; $result = $wpdb->query($alterQuery); if ($result === false) { error_log(sprintf( BackendStrings::getExceptionStrings()['migration_error_add_column'], 'styleSettings', $tableName )); return false; } return true; } public static function rollback(): bool { global $wpdb; $tableName = FormsTable::getTableName(); $alterQuery = "ALTER TABLE `{$tableName}` DROP COLUMN `styleSettings`"; $result = $wpdb->query($alterQuery); return $result !== false; } }