You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/docker/v3.1.0/step1.sql

13 lines
1.1 KiB
MySQL

alter table vp_medical_rec
11 months ago
modify status integer default 0 null comment '上线状态 0未上线 1已经上线 状态为未上线且病历未出现在vp_process表中使用可以进行删除';
alter table vp_ask_template_question_library
add type int default 1 null comment '问题类型 1标准问 2自定义问题' after standard_question
-- 在诊断关联表中添加关系类型字段
alter table vp_disease_ancillary
add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after require_check_flag;
alter table vp_disease_physical
add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after require_check_flag;
alter table vp_disease_treatment_plan
add relation_type integer default 0 null comment '关系类型 0:关联疾病 1:关联病历 当类型为1是 disease_id代表的是vp_medical_rec表中的id' after treatment_plan_id;