Skip to content

Commit d87e1b6

Browse files
Sara Gowendynamictulip
authored andcommitted
Update seed data to include breaks
1 parent f944a8b commit d87e1b6

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Before running this script, ensure that FullDBScript.sql has been run to create the tables
2+
3+
-- Remove all the data
14
delete [UserSessionFeedback]
25
delete [UserEventFeedback]
36
delete [Sessions]
@@ -8,18 +11,26 @@ delete EventDetail
811

912
GO
1013

11-
DBCC CHECKIDENT ('[EventDetail]', RESEED, 1);
14+
-- Reset the identity columns
15+
DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0
1216
DBCC CHECKIDENT ('[Tracks]', RESEED, 0);
1317
DBCC CHECKIDENT ('[TimeSlots]', RESEED, 0);
1418
DBCC CHECKIDENT ('[Sessions]', RESEED, 0);
1519

1620
GO
1721

22+
-- Add 2024 Sessionize ID
1823
Insert into EventDetail values (1, 'kn91wz1x')
1924

20-
Insert into Tracks values (1, 'Track 1','The Junction 🚉', 0)
21-
Insert into Tracks values (1, 'Track 2','Brunel''s Boardroom 🎩🛹', 1)
22-
Insert into Tracks values (1, 'Track 3','Brunel''s Breakout room 🎩☕', 2)
23-
Insert into Tracks values (1, 'Track 4','Clock tower room ⏲', 3)
25+
GO
26+
27+
-- Add breaks (these don't get imported from Sessionize)
28+
Insert into TimeSlots values (1,'2024-04-27 08:30:00.0000000 +01:00','2024-04-27 09:00:00.0000000 +01:00', 'Registration & Breakfast | Sponsored by Elastic Mint')
29+
Insert into TimeSlots values (1,'2024-04-27 09:00:00.0000000 +01:00','2024-04-27 09:30:00.0000000 +01:00', 'Welcome briefing')
30+
Insert into TimeSlots values (1,'2024-04-27 10:30:00.0000000 +01:00','2024-04-27 10:45:00.0000000 +01:00', 'Tea & Coffee')
31+
Insert into TimeSlots values (1,'2024-04-27 11:45:00.0000000 +01:00','2024-04-27 12:00:00.0000000 +01:00', 'Tea & Coffee')
32+
Insert into TimeSlots values (1,'2024-04-27 13:00:00.0000000 +01:00','2024-04-27 14:15:00.0000000 +01:00', 'Lunch | Sponsored by Just Eat Takeaway.com')
33+
Insert into TimeSlots values (1,'2024-04-27 15:15:00.0000000 +01:00','2024-04-27 15:45:00.0000000 +01:00', 'Afternoon Tea | Sponsored by dxw')
34+
Insert into TimeSlots values (1,'2024-04-27 16:45:00.0000000 +01:00','2024-04-27 17:15:00.0000000 +01:00', 'Closing & Prize draw')
2435

25-
GO
36+
GO

0 commit comments

Comments
 (0)