-- 修复 SS 云控同步周期配置键名拼写错误：ss_custome -> ss_customer
SET NAMES utf8mb4;

UPDATE `fa_config`
SET `name` = 'split_sync_interval_ss_customer'
WHERE `name` = 'split_sync_interval_ss_custome'
  AND NOT EXISTS (SELECT 1 FROM (SELECT `id` FROM `fa_config` WHERE `name` = 'split_sync_interval_ss_customer') AS `t`);

UPDATE `fa_config` AS `correct`
INNER JOIN `fa_config` AS `wrong` ON `wrong`.`name` = 'split_sync_interval_ss_custome'
SET `correct`.`value` = `wrong`.`value`
WHERE `correct`.`name` = 'split_sync_interval_ss_customer';

DELETE FROM `fa_config` WHERE `name` = 'split_sync_interval_ss_custome';
