1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-13 13:47:30 -05:00

stub out use2fa and twofactorproviders on orgs

This commit is contained in:
Kyle Spearrin
2018-04-02 14:53:19 -04:00
parent 63169e4ecc
commit bcc224c02d
13 changed files with 361 additions and 6 deletions

View File

@ -16,6 +16,7 @@
@UseDirectory BIT,
@UseEvents BIT,
@UseTotp BIT,
@Use2fa BIT,
@SelfHost BIT,
@UsersGetPremium BIT,
@Storage BIGINT,
@ -25,6 +26,7 @@
@GatewaySubscriptionId VARCHAR(50),
@Enabled BIT,
@LicenseKey VARCHAR(100),
@TwoFactorProviders NVARCHAR(MAX),
@ExpirationDate DATETIME2(7),
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
@ -51,6 +53,7 @@ BEGIN
[UseDirectory],
[UseEvents],
[UseTotp],
[Use2fa],
[SelfHost],
[UsersGetPremium],
[Storage],
@ -60,6 +63,7 @@ BEGIN
[GatewaySubscriptionId],
[Enabled],
[LicenseKey],
[TwoFactorProviders],
[ExpirationDate],
[CreationDate],
[RevisionDate]
@ -83,6 +87,7 @@ BEGIN
@UseDirectory,
@UseEvents,
@UseTotp,
@Use2fa,
@SelfHost,
@UsersGetPremium,
@Storage,
@ -92,6 +97,7 @@ BEGIN
@GatewaySubscriptionId,
@Enabled,
@LicenseKey,
@TwoFactorProviders,
@ExpirationDate,
@CreationDate,
@RevisionDate

View File

@ -6,6 +6,7 @@ BEGIN
SELECT
[Id],
[UseEvents],
[Use2fa],
[Enabled]
FROM
[dbo].[Organization]

View File

@ -16,6 +16,7 @@
@UseDirectory BIT,
@UseEvents BIT,
@UseTotp BIT,
@Use2fa BIT,
@SelfHost BIT,
@UsersGetPremium BIT,
@Storage BIGINT,
@ -25,6 +26,7 @@
@GatewaySubscriptionId VARCHAR(50),
@Enabled BIT,
@LicenseKey VARCHAR(100),
@TwoFactorProviders NVARCHAR(MAX),
@ExpirationDate DATETIME2(7),
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
@ -51,6 +53,7 @@ BEGIN
[UseDirectory] = @UseDirectory,
[UseEvents] = @UseEvents,
[UseTotp] = @UseTotp,
[Use2fa] = @Use2fa,
[SelfHost] = @SelfHost,
[UsersGetPremium] = @UsersGetPremium,
[Storage] = @Storage,
@ -60,6 +63,7 @@ BEGIN
[GatewaySubscriptionId] = @GatewaySubscriptionId,
[Enabled] = @Enabled,
[LicenseKey] = @LicenseKey,
[TwoFactorProviders] = @TwoFactorProviders,
[ExpirationDate] = @ExpirationDate,
[CreationDate] = @CreationDate,
[RevisionDate] = @RevisionDate

View File

@ -16,6 +16,7 @@
[UseDirectory] BIT NOT NULL,
[UseEvents] BIT NOT NULL,
[UseTotp] BIT NOT NULL,
[Use2fa] BIT NOT NULL,
[SelfHost] BIT NOT NULL,
[UsersGetPremium] BIT NOT NULL,
[Storage] BIGINT NULL,
@ -25,6 +26,7 @@
[GatewaySubscriptionId] VARCHAR (50) NULL,
[Enabled] BIT NOT NULL,
[LicenseKey] VARCHAR (100) NULL,
[TwoFactorProviders] NVARCHAR (MAX) NULL,
[ExpirationDate] DATETIME2 (7) NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL,