ALTER TABLE `sys_gift_config`
  ADD COLUMN `cp_relation_type` varchar(32) DEFAULT NULL COMMENT 'CP礼物关系类型：CP/BROTHER/SISTERS' AFTER `gift_tab`;

UPDATE `sys_gift_config`
SET `cp_relation_type` = 'CP'
WHERE `gift_tab` = 'CP'
  AND (`cp_relation_type` IS NULL OR `cp_relation_type` = '');
