升级
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
--风险信息库:危险级别为空数据处理
|
||||
update Hazard_HazardSelectedItem
|
||||
set HazardLevel='84e1d680-5bfe-48d2-a255-59f43aa3615a'
|
||||
where HazardLevel is null and HazardJudge_D<=120
|
||||
GO
|
||||
update Hazard_HazardSelectedItem
|
||||
set HazardLevel='01537cc5-e8d2-497c-ba53-1faca1faf495'
|
||||
where HazardLevel is null and HazardJudge_D<=170 and HazardJudge_D>120
|
||||
GO
|
||||
update Hazard_HazardSelectedItem
|
||||
set HazardLevel='6baaf2bb-ee7c-410c-9a32-13208626c467'
|
||||
where HazardLevel is null and HazardJudge_D<=320 and HazardJudge_D>170
|
||||
GO
|
||||
update Hazard_HazardSelectedItem
|
||||
set HazardLevel='c9e6285c-2da3-4997-8dc9-fb6ab404346e'
|
||||
where HazardLevel is null and HazardJudge_D>320
|
||||
GO
|
||||
|
||||
|
||||
--质量会议补充字段:来源说明
|
||||
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'CQMS_Meeting' AND COLUMN_NAME = 'SourceDes')
|
||||
BEGIN
|
||||
ALTER TABLE CQMS_Meeting ADD SourceDes nvarchar(500);
|
||||
END
|
||||
GO
|
||||
|
||||
--质量计量器具补充字段:来源说明
|
||||
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Comprehensive_InspectionMachine' AND COLUMN_NAME = 'SourceDes')
|
||||
BEGIN
|
||||
ALTER TABLE Comprehensive_InspectionMachine ADD SourceDes nvarchar(500);
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user