1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/util/SqlUpdate/2017-06-30_00_UserPremium.sql
2017-07-07 14:08:30 -04:00

20 lines
242 B
Transact-SQL

alter table [user] add [Premium] BIT NULL
go
update [user] set [premium] = 0
go
alter table [user] alter column [premium] BIT NOT NULL
go
drop view [dbo].[UserView]
go
CREATE VIEW [dbo].[UserView]
AS
SELECT
*
FROM
[dbo].[User]
GO