1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-25 13:24:50 -05:00
bitwarden/util/Setup/DbScripts/2018-07-19_00_UserPremiumIndex.sql
2018-07-19 16:01:54 -04:00

10 lines
369 B
Transact-SQL

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