1+ -- Before running this script, ensure that FullDBScript.sql has been run to create the tables
2+
3+ -- Remove all the data
14delete [UserSessionFeedback]
25delete [UserEventFeedback]
36delete [Sessions]
@@ -8,18 +11,26 @@ delete EventDetail
811
912GO
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
1216DBCC CHECKIDENT (' [Tracks]' , RESEED, 0 );
1317DBCC CHECKIDENT (' [TimeSlots]' , RESEED, 0 );
1418DBCC CHECKIDENT (' [Sessions]' , RESEED, 0 );
1519
1620GO
1721
22+ -- Add 2024 Sessionize ID
1823Insert 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