diff --git a/util/Migrator/DbScripts/2022-02-10_00_FailedLoginCaptcha.sql b/util/Migrator/DbScripts/2022-02-10_00_FailedLoginCaptcha.sql index f5afbf113d..3a1ed7b919 100644 --- a/util/Migrator/DbScripts/2022-02-10_00_FailedLoginCaptcha.sql +++ b/util/Migrator/DbScripts/2022-02-10_00_FailedLoginCaptcha.sql @@ -4,24 +4,10 @@ BEGIN ALTER TABLE [dbo].[User] ADD - [FailedLoginCount] INT NULL + [FailedLoginCount] INT NOT NULL CONSTRAINT D_User_FailedLoginCount DEFAULT 0 END GO -UPDATE - [dbo].[User] -SET - [FailedLoginCount] = 0 -WHERE - [FailedLoginCount] IS NULL -GO - -ALTER TABLE - [dbo].[User] -ALTER COLUMN - [FailedLoginCount] INT NOT NULL -GO - -- Table: User (LastFailedLoginDate) IF COL_LENGTH('[dbo].[User]', 'LastFailedLoginDate') IS NULL BEGIN