mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
27 lines
377 B
Transact-SQL
27 lines
377 B
Transact-SQL
alter table [Organization] add [SelfHost] BIT NULL
|
|
go
|
|
|
|
|
|
update [Organization] set [SelfHost] = 0
|
|
go
|
|
|
|
update [Organization] set [SelfHost] = 1 where PlanType = 4 or PlanType = 5
|
|
go
|
|
|
|
|
|
alter table [Organization] alter column [SelfHost] BIT NOT NULL
|
|
go
|
|
|
|
|
|
drop view [dbo].[OrganizationView]
|
|
go
|
|
|
|
CREATE VIEW [dbo].[OrganizationView]
|
|
AS
|
|
SELECT
|
|
*
|
|
FROM
|
|
[dbo].[Organization]
|
|
GO
|
|
|