-- ============================================================
-- 变更说明：
-- 1. org_personnel: 删除 professional_level_code、professional_level_name、person_type_name；
--    title_code 改为 title_code_arr，类型 text
-- 2. qual_filing_personnel: 删除 person_type_name；
--    title_code 改为 title_code_arr，类型 text
-- 3. qual_filing_personnel_change: 删除 person_type_name；
--    title_code 改为 title_code_arr，类型 text
-- ============================================================

-- ----------------------------
-- org_personnel
-- ----------------------------
ALTER TABLE `org_personnel`
    DROP COLUMN `professional_level_code`,
    DROP COLUMN `professional_level_name`,
    DROP COLUMN `person_type_name`,
    CHANGE COLUMN `title_code` `title_code_arr` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '职称(多个逗号分隔)';

-- ----------------------------
-- qual_filing_personnel
-- ----------------------------
ALTER TABLE `qual_filing_personnel`
    DROP COLUMN `person_type_name`,
    CHANGE COLUMN `title_code` `title_code_arr` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '职称(多个逗号分隔)';

-- ----------------------------
-- qual_filing_personnel_change
-- ----------------------------
ALTER TABLE `qual_filing_personnel_change`
    DROP COLUMN `person_type_name`,
    CHANGE COLUMN `title_code` `title_code_arr` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '职称(多个逗号分隔)';
