-- 1. Drop foreign key constraints that prevent data insertion since the parent 'users' table is not part of the replication ALTER TABLE `demo`.`crm_sales_visit_records` DROP FOREIGN KEY `fk_recorder_id`; ALTER TABLE `demo`.`user_profiles` DROP FOREIGN KEY `fk_1`; -- 2. Drop the generated column 'biz_key' in 'crm_acv_targets' and recreate it as a standard VARCHAR column so Sling can import data into it ALTER TABLE `demo`.`crm_acv_targets` DROP COLUMN `biz_key`; ALTER TABLE `demo`.`crm_acv_targets` ADD COLUMN `biz_key` VARCHAR(16) NULL COMMENT '业务主键(如FY26Q1,全年为FY26)';