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/virtual-patient-web/src/main/resources/sqlScript/todo.sql

49 lines
2.1 KiB
MySQL

-- 2.0之后的SQL变更
alter table vp_user
add status int default 0 null comment '账号状态 0正常 1停用' after role_code;
alter table vp_config_drug
add interval_hour varchar(64) null comment '用药间隔(小时)' after interval_day;
alter table vp_disease_ancillary
modify result text null comment '结果';
alter table vp_disease_ancillary
add normal_result varchar(1024) null comment '正常结果' after result;
alter table vp_disease_physical
modify result text null comment '结果';
alter table vp_disease_physical
add normal_result varchar(1024) null comment '正常结果' after result;
alter table vp_config_drug
add first_measures_id varchar(64) null comment '一级措施id' after drug_name_en;
-- 添加注释
alter table vp_treatment_plan_record
modify treatment_plan_id varchar(64) null comment '处置计划id 对应与vp_treatment_plan表中的id';
alter table vp_treatment_plan_record
modify disposal_plan varchar(64) null comment '处置计划 废弃字段对应与vp_treatment_plan表中的disposal_plan_id,根据treatment_plan_id可以获取到';
alter table vp_treatment_plan_record
modify first_measures varchar(64) null comment '一级措施 废弃字段对应与vp_treatment_plan表中的firstMeasures,根据treatment_plan_id可以获取到';
alter table vp_treatment_plan_record
modify drug_id varchar(64) null comment '药品编码 当treatment_plan_id 为空时drug_id 不应该为空';
-- 添加注释
alter table vp_ask_template_question_library
modify description varchar(255) null comment '中文注释 用户设置的问题';
alter table vp_ask_template_question_library
modify question json null comment '问题列表 由用户传入的问题生成的问题列表';
-- 修改字段类型
alter table vp_rasa_model_info
modify train_log longtext null comment '训练日志';
alter table vp_rasa_model_info
modify run_log longtext null comment '运行日志';
-- 修改药物表字段类型
alter table vp_config_drug
modify interval_hour double null comment '用药间隔(小时)';
alter table vp_config_drug
modify interval_day integer null comment '用药间隔';