1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Comment out index

This commit is contained in:
Michal Checinski 2023-09-05 16:38:52 +02:00
parent c3f58e692b
commit df15fa91e0
No known key found for this signature in database
GPG Key ID: 7658E89E8394A248

View File

@ -7,12 +7,12 @@ IF COL_LENGTH('[dbo].[ApiKey]', 'ClientSecretHash') IS NOT NULL AND COL_LENGTH('
BEGIN
-- Add index
IF NOT EXISTS(SELECT name FROM sys.indexes WHERE name = 'IX_ApiKey_ClientSecretHash')
BEGIN
CREATE NONCLUSTERED INDEX [IX_ApiKey_ClientSecretHash]
ON [dbo].[ApiKey]([ClientSecretHash] ASC)
WITH (ONLINE = ON)
END
-- IF NOT EXISTS(SELECT name FROM sys.indexes WHERE name = 'IX_ApiKey_ClientSecretHash')
-- BEGIN
-- CREATE NONCLUSTERED INDEX [IX_ApiKey_ClientSecretHash]
-- ON [dbo].[ApiKey]([ClientSecretHash] ASC)
-- WITH (ONLINE = ON)
-- END
-- Data Migration
DECLARE @BatchSize INT = 10000