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,29 @@ delete EventDetail
811
912GO
1013
11- DBCC CHECKIDENT ( ' [EventDetail]' , RESEED, 1 );
14+ -- Reset the identity columns
1215DBCC CHECKIDENT (' [Tracks]' , RESEED, 0 );
1316DBCC CHECKIDENT (' [TimeSlots]' , RESEED, 0 );
1417DBCC CHECKIDENT (' [Sessions]' , RESEED, 0 );
1518
19+ -- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0
20+ DBCC CHECKIDENT (' [EventDetail]' , RESEED, 1 ); -- Use if this is a brand new table that has never been used before
21+ -- DBCC CHECKIDENT ('[EventDetail]', RESEED, 0); -- Use if this is an empty table that used to have rows
22+
1623GO
1724
25+ -- Add 2024 Sessionize ID
1826Insert into EventDetail values (1 , ' kn91wz1x' )
1927
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 )
28+ GO
2429
25- GO
30+ -- Add breaks (these don't get imported from Sessionize)
31+ 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' )
32+ 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' )
33+ 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' )
34+ 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' )
35+ 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' )
36+ 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' )
37+ 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' )
38+
39+ GO
0 commit comments