mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00:00
org totp and storage flags
This commit is contained in:
23
util/SqlUpdate/2017-07-07_00_OrgFields.sql
Normal file
23
util/SqlUpdate/2017-07-07_00_OrgFields.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
alter table [organization] add [UseTotp] BIT NULL
|
||||
go
|
||||
|
||||
-- all but free plans
|
||||
update [organization]
|
||||
set
|
||||
[UseTotp] = CASE WHEN [organization].[plantype] != 0 THEN 1 ELSE 0 END,
|
||||
[MaxStorageGb] = CASE WHEN [organization].[plantype] != 0 THEN 1 ELSE NULL END
|
||||
go
|
||||
|
||||
alter table [organization] alter column [UseTotp] BIT NOT NULL
|
||||
go
|
||||
|
||||
drop view [dbo].[OrganizationView]
|
||||
go
|
||||
|
||||
CREATE VIEW [dbo].[OrganizationView]
|
||||
AS
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[Organization]
|
||||
GO
|
||||
Reference in New Issue
Block a user