-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data.sql
71 lines (64 loc) · 2.07 KB
/
Data.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
IF NOT EXISTS(SELECT * FROM [GEN_LIST] WHERE [ID] = 1)
BEGIN
SET IDENTITY_INSERT [DBO].[GEN_LIST] ON
INSERT [DBO].[GEN_LIST] ([ID], [LIST_NAME])
VALUES (1, N'Incident Status')
SET IDENTITY_INSERT [DBO].[GEN_LIST] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [GEN_LIST_ITEM] WHERE [ID] = 1)
BEGIN
SET IDENTITY_INSERT [DBO].[GEN_LIST_ITEM] ON
INSERT [DBO].[GEN_LIST_ITEM] ([id], [LIST_ID], [LIST_ITEM])
VALUES (1, 1, N'In progress')
SET IDENTITY_INSERT [DBO].[GEN_LIST_ITEM] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [GEN_LIST_ITEM] WHERE [ID] = 2)
BEGIN
SET IDENTITY_INSERT [DBO].[GEN_LIST_ITEM] ON
INSERT [DBO].[GEN_LIST_ITEM] ([id], [LIST_ID], [LIST_ITEM])
VALUES (2, 1, N'Closed')
SET IDENTITY_INSERT [DBO].[GEN_LIST_ITEM] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [MSTeamsIncidentType] WHERE [ID] = 1)
BEGIN
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] ON
INSERT [DBO].[MSTeamsIncidentType] ([id], [incident_type])
VALUES (1, 'Safety Check')
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [MSTeamsIncidentType] WHERE [ID] = 2)
BEGIN
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] ON
INSERT [DBO].[MSTeamsIncidentType] ([id], [incident_type])
VALUES (2, 'Safety Alert')
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [MSTeamsIncidentType] WHERE [ID] = 3)
BEGIN
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] ON
INSERT [DBO].[MSTeamsIncidentType] ([id], [incident_type])
VALUES (3, 'Important Bulletin')
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [MSTeamsIncidentType] WHERE [ID] = 4)
BEGIN
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] ON
INSERT [DBO].[MSTeamsIncidentType] ([id], [incident_type])
VALUES (4, 'Travel Advisory')
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] OFF
END
GO
IF NOT EXISTS(SELECT * FROM [MSTeamsIncidentType] WHERE [ID] = 5)
BEGIN
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] ON
INSERT [DBO].[MSTeamsIncidentType] ([id], [incident_type])
VALUES (5, 'Stakeholder Notice')
SET IDENTITY_INSERT [DBO].[MSTeamsIncidentType] OFF
END
GO