Skip to content

Commit 4c3d2ba

Browse files
committed
Create the new index CONCURRENTLY
1 parent 5fb37d2 commit 4c3d2ba

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

crates/storage-pg/migrations/20251121145458_user_registration_upstream_oauth_session.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ ALTER TABLE user_registrations
88
ADD COLUMN upstream_oauth_authorization_session_id UUID
99
REFERENCES upstream_oauth_authorization_sessions (upstream_oauth_authorization_session_id)
1010
ON DELETE SET NULL;
11-
12-
CREATE INDEX user_registrations_upstream_oauth_session_id_idx
13-
ON user_registrations (upstream_oauth_authorization_session_id);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- no-transaction
2+
-- Copyright 2025 New Vector Ltd.
3+
--
4+
-- SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
5+
-- Please see LICENSE in the repository root for full details.
6+
7+
-- Index on the new foreign key added by the previous migration
8+
CREATE INDEX CONCURRENTLY user_registrations_upstream_oauth_session_id_idx
9+
ON user_registrations (upstream_oauth_authorization_session_id);

0 commit comments

Comments
 (0)