1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +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
@ -30,7 +30,7 @@ BEGIN
WHERE [ClientSecretHash] IS NULL
SET @BatchSize = @@ROWCOUNT
COMMIT TRANSACTION Migrate_ClientSecretHash
END