mirror of
https://github.com/bitwarden/server
synced 2025-12-25 12:43:14 +00:00
Added RevisionDate to User table/domain
This commit is contained in:
@@ -68,9 +68,9 @@
|
||||
<Build Include="dbo\Tables\Folder.sql" />
|
||||
<Build Include="dbo\Tables\Site.sql" />
|
||||
<Build Include="dbo\Tables\User.sql" />
|
||||
<Build Include="dbo\Views\UserView.sql" />
|
||||
<Build Include="dbo\Views\FolderView.sql" />
|
||||
<Build Include="dbo\Views\SiteView.sql" />
|
||||
<Build Include="dbo\Views\UserView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\User_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Folder_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Site_ReadById.sql" />
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
@TwoFactorEnabled BIT,
|
||||
@TwoFactorProvider TINYINT,
|
||||
@AuthenticatorKey NVARCHAR(50),
|
||||
@CreationDate DATETIME2(7)
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
INSERT INTO [dbo].[User]
|
||||
@@ -24,7 +25,8 @@ BEGIN
|
||||
[TwoFactorEnabled],
|
||||
[TwoFactorProvider],
|
||||
[AuthenticatorKey],
|
||||
[CreationDate]
|
||||
[CreationDate],
|
||||
[RevisionDate]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@@ -38,6 +40,7 @@ BEGIN
|
||||
@TwoFactorEnabled,
|
||||
@TwoFactorProvider,
|
||||
@AuthenticatorKey,
|
||||
@CreationDate
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
END
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
@TwoFactorEnabled BIT,
|
||||
@TwoFactorProvider TINYINT,
|
||||
@AuthenticatorKey NVARCHAR(50),
|
||||
@CreationDate DATETIME2(7)
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
UPDATE
|
||||
@@ -24,7 +25,8 @@ BEGIN
|
||||
[TwoFactorEnabled] = @TwoFactorEnabled,
|
||||
[TwoFactorProvider] = TwoFactorProvider,
|
||||
[AuthenticatorKey] = @AuthenticatorKey,
|
||||
[CreationDate] = @CreationDate
|
||||
[CreationDate] = @CreationDate,
|
||||
[RevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@Email NVARCHAR(50),
|
||||
@MasterPassword NVARCHAR(300),
|
||||
@SecurityStamp NVARCHAR(50)
|
||||
@SecurityStamp NVARCHAR(50),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
UPDATE
|
||||
@@ -10,7 +11,8 @@ BEGIN
|
||||
SET
|
||||
[Email] = @Email,
|
||||
[MasterPassword] = @MasterPassword,
|
||||
[SecurityStamp] = @SecurityStamp
|
||||
[SecurityStamp] = @SecurityStamp,
|
||||
[RevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
[TwoFactorProvider] TINYINT NULL,
|
||||
[AuthenticatorKey] NVARCHAR (50) NULL,
|
||||
[CreationDate] DATETIME2 (7) NOT NULL,
|
||||
[RevisionDate] DATETIME2 (7) NOT NULL,
|
||||
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([Id] ASC)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user