1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00
bitwarden-server/util/SqlUpdate/2017-08-09_00_OrgSelfHost.sql

27 lines
377 B
MySQL
Raw Normal View History

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