Skip to content

Commit b24544b

Browse files
author
Sara Gowen
committed
Add disambiguation around reseed identity for EventDetail
1 parent 5e9fee5 commit b24544b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PocketDDD.Server/PocketDDD.Server.DB/Migrations/2024_SeedData.sql

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ delete EventDetail
1212
GO
1313

1414
-- Reset the identity columns
15-
DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0
1615
DBCC CHECKIDENT ('[Tracks]', RESEED, 0);
1716
DBCC CHECKIDENT ('[TimeSlots]', RESEED, 0);
1817
DBCC CHECKIDENT ('[Sessions]', RESEED, 0);
1918

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+
2023
GO
2124

2225
-- Add 2024 Sessionize ID

0 commit comments

Comments
 (0)