From 1f7db8c303d63ecc34e8b9e49d6f4e457617e259 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 12 Mar 2018 10:17:10 -0400 Subject: [PATCH] GO and reset on login uris --- util/Setup/DbScripts/2018-02-28_00_LoginUris.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql b/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql index a14342562..6e03d5c9f 100644 --- a/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql +++ b/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql @@ -63,10 +63,14 @@ BEGIN SET @BatchSize = @@ROWCOUNT RAISERROR('Updated %d ciphers with Uris', 0, 1, @BatchSize) WITH NOWAIT END +GO -- Reset TRUNCATE TABLE [CompletedIds] -SET @BatchSize = 1000 +DECLARE @UriPath VARCHAR(50) = '$.Uri' +DECLARE @UrisPath VARCHAR(50) = '$.Uris' +DECLARE @BatchSize INT = 1000 +DECLARE @LastId UNIQUEIDENTIFIER = NULL -- Step 2: Remove old Uri Property WHILE @BatchSize > 0