-- ================================================
-- MIGRACIÓN: Agregar campos alas_json y areas_oportunidad_json
-- Fecha: 2025-10-06
-- ================================================

-- Agregar las nuevas columnas a la tabla result_configurations
ALTER TABLE `result_configurations`
ADD COLUMN `alas_json` longtext DEFAULT NULL COMMENT 'Array JSON de alas del eneatipo' AFTER `consejos_json`,
ADD COLUMN `areas_oportunidad_json` longtext DEFAULT NULL COMMENT 'Array JSON de áreas de oportunidad' AFTER `alas_json`;

-- Verificar que las columnas se hayan agregado
-- SELECT COLUMN_NAME, DATA_TYPE, COLUMN_COMMENT
-- FROM INFORMATION_SCHEMA.COLUMNS
-- WHERE TABLE_NAME = 'result_configurations'
-- AND COLUMN_NAME IN ('alas_json', 'areas_oportunidad_json');
