mirror of
https://github.com/bitwarden/server.git
synced 2025-07-16 15:17:33 -05:00
cleanup installer. break apart update script
This commit is contained in:
@ -7,16 +7,6 @@ BEGIN
|
||||
END
|
||||
GO
|
||||
|
||||
IF NOT EXISTS (
|
||||
SELECT * FROM sys.indexes WHERE [Name]='IX_User_Premium_PremiumExpirationDate_RenewalReminderDate'
|
||||
AND object_id = OBJECT_ID('[dbo].[User]')
|
||||
)
|
||||
BEGIN
|
||||
CREATE NONCLUSTERED INDEX [IX_User_Premium_PremiumExpirationDate_RenewalReminderDate]
|
||||
ON [dbo].[User]([Premium] ASC, [PremiumExpirationDate] ASC, [RenewalReminderDate] ASC)
|
||||
END
|
||||
GO
|
||||
|
||||
IF OBJECT_ID('[dbo].[User_Create]') IS NOT NULL
|
||||
BEGIN
|
||||
DROP PROCEDURE [dbo].[User_Create]
|
||||
|
9
util/Setup/DbScripts/2018-07-19_00_UserPremiumIndex.sql
Normal file
9
util/Setup/DbScripts/2018-07-19_00_UserPremiumIndex.sql
Normal file
@ -0,0 +1,9 @@
|
||||
IF NOT EXISTS (
|
||||
SELECT * FROM sys.indexes WHERE [Name]='IX_User_Premium_PremiumExpirationDate_RenewalReminderDate'
|
||||
AND object_id = OBJECT_ID('[dbo].[User]')
|
||||
)
|
||||
BEGIN
|
||||
CREATE NONCLUSTERED INDEX [IX_User_Premium_PremiumExpirationDate_RenewalReminderDate]
|
||||
ON [dbo].[User]([Premium] ASC, [PremiumExpirationDate] ASC, [RenewalReminderDate] ASC)
|
||||
END
|
||||
GO
|
Reference in New Issue
Block a user