mirror of
https://github.com/bitwarden/server.git
synced 2025-05-25 13:24:50 -05:00
10 lines
369 B
Transact-SQL
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
|