From e3699156deadf4ea51d8fe02b3692fc8fd6ff8b1 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 13 Jun 2022 11:42:24 -0300 Subject: [PATCH] [PS-589] Fix DeviceUnknownVerification User_Update proc (#2041) * PS-589 Fix 2022-05-24_00_DeviceUnknownVerification User_Update proc to remove the NULL and set the default value * PS-589 updated stored procedures on Sql project to have UnknownDeviceVerificationEnabled with default 1 instead of NULL --- src/Sql/dbo/Stored Procedures/User_Create.sql | 2 +- src/Sql/dbo/Stored Procedures/User_Update.sql | 2 +- .../DbScripts/2022-05-24_00_DeviceUnknownVerification.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sql/dbo/Stored Procedures/User_Create.sql b/src/Sql/dbo/Stored Procedures/User_Create.sql index c5d49a189e..769ef0e924 100644 --- a/src/Sql/dbo/Stored Procedures/User_Create.sql +++ b/src/Sql/dbo/Stored Procedures/User_Create.sql @@ -34,7 +34,7 @@ @UsesKeyConnector BIT = 0, @FailedLoginCount INT = 0, @LastFailedLoginDate DATETIME2(7), - @UnknownDeviceVerificationEnabled BIT NULL + @UnknownDeviceVerificationEnabled BIT = 1 AS BEGIN SET NOCOUNT ON diff --git a/src/Sql/dbo/Stored Procedures/User_Update.sql b/src/Sql/dbo/Stored Procedures/User_Update.sql index 91fdfe3efa..30575f7266 100644 --- a/src/Sql/dbo/Stored Procedures/User_Update.sql +++ b/src/Sql/dbo/Stored Procedures/User_Update.sql @@ -34,7 +34,7 @@ @UsesKeyConnector BIT = 0, @FailedLoginCount INT, @LastFailedLoginDate DATETIME2(7), - @UnknownDeviceVerificationEnabled BIT NULL + @UnknownDeviceVerificationEnabled BIT = 1 AS BEGIN SET NOCOUNT ON diff --git a/util/Migrator/DbScripts/2022-05-24_00_DeviceUnknownVerification.sql b/util/Migrator/DbScripts/2022-05-24_00_DeviceUnknownVerification.sql index 4e05922176..6064820e9c 100644 --- a/util/Migrator/DbScripts/2022-05-24_00_DeviceUnknownVerification.sql +++ b/util/Migrator/DbScripts/2022-05-24_00_DeviceUnknownVerification.sql @@ -195,7 +195,7 @@ CREATE PROCEDURE [dbo].[User_Update] @UsesKeyConnector BIT = 0, @FailedLoginCount INT, @LastFailedLoginDate DATETIME2(7), - @UnknownDeviceVerificationEnabled BIT NULL + @UnknownDeviceVerificationEnabled BIT = 1 AS BEGIN SET NOCOUNT ON