mirror of
https://github.com/bitwarden/server
synced 2025-12-28 06:03:29 +00:00
license verification services for user/org
This commit is contained in:
26
util/SqlUpdate/2017-08-09_00_OrgSelfHost.sql
Normal file
26
util/SqlUpdate/2017-08-09_00_OrgSelfHost.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user