mirror of
https://github.com/bitwarden/server
synced 2026-01-07 11:03:37 +00: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
|