-- rocket_config.level 已有唯一索引；以下两次 INSERT 均通过唯一键读取三级模板，数据量固定为单行。
-- 新等级先保持禁用，运营确认阈值和奖励后再从 WebConsole 启用，避免未确认配置参与发奖。
INSERT IGNORE INTO rocket_config (
    id,
    level,
    max_energy,
    reward_config,
    reward_quantity,
    contributor_reward_rate,
    normal_reward_config,
    status,
    created_at,
    updated_at
)
SELECT
    4,
    4,
    150000000,
    reward_config,
    reward_quantity,
    contributor_reward_rate,
    normal_reward_config,
    0,
    NOW(),
    NOW()
FROM rocket_config
WHERE level = 3;

INSERT IGNORE INTO rocket_config (
    id,
    level,
    max_energy,
    reward_config,
    reward_quantity,
    contributor_reward_rate,
    normal_reward_config,
    status,
    created_at,
    updated_at
)
SELECT
    5,
    5,
    200000000,
    reward_config,
    reward_quantity,
    contributor_reward_rate,
    normal_reward_config,
    0,
    NOW(),
    NOW()
FROM rocket_config
WHERE level = 3;

SELECT id, level, max_energy, status
FROM rocket_config
WHERE level IN (4, 5)
ORDER BY level;
