-- room_platform_icon: ADD icon_scale_x, icon_scale_y (matches Java/MyBatis)
-- Run once. New DBs: include these columns after icon_scale in CREATE TABLE.

ALTER TABLE room_platform_icon
  ADD COLUMN icon_scale_x DOUBLE DEFAULT NULL COMMENT 'horizontal scale' AFTER icon_scale,
  ADD COLUMN icon_scale_y DOUBLE DEFAULT NULL COMMENT 'vertical scale' AFTER icon_scale_x;

UPDATE room_platform_icon
SET icon_scale_x = COALESCE(icon_scale, 1),
    icon_scale_y = COALESCE(icon_scale, 1)
WHERE icon_scale_x IS NULL OR icon_scale_y IS NULL;
