From b24544b989008f56aedeb87301df8afc6bc8a3f4 Mon Sep 17 00:00:00 2001 From: Sara Gowen Date: Fri, 26 Apr 2024 12:15:56 +0100 Subject: [PATCH] Add disambiguation around reseed identity for EventDetail --- .../PocketDDD.Server.DB/Migrations/2024_SeedData.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PocketDDD.Server/PocketDDD.Server.DB/Migrations/2024_SeedData.sql b/PocketDDD.Server/PocketDDD.Server.DB/Migrations/2024_SeedData.sql index 5e825cd..37fb204 100644 --- a/PocketDDD.Server/PocketDDD.Server.DB/Migrations/2024_SeedData.sql +++ b/PocketDDD.Server/PocketDDD.Server.DB/Migrations/2024_SeedData.sql @@ -12,11 +12,14 @@ delete EventDetail GO -- Reset the identity columns -DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0 DBCC CHECKIDENT ('[Tracks]', RESEED, 0); DBCC CHECKIDENT ('[TimeSlots]', RESEED, 0); DBCC CHECKIDENT ('[Sessions]', RESEED, 0); +-- There is hardcoding to EventDetail ID 1 so we reset to 1 not 0 +DBCC CHECKIDENT ('[EventDetail]', RESEED, 1); -- Use if this is a brand new table that has never been used before +--DBCC CHECKIDENT ('[EventDetail]', RESEED, 0); -- Use if this is an empty table that used to have rows + GO -- Add 2024 Sessionize ID