-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from openfort-xyz/feat/new-index
chore: add index on shld_external_users for external_user_id, provide…
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
internal/adapters/repositories/sql/migrations/20241212131601_new_indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- +goose Up | ||
CREATE INDEX idx_external_user_provider_deleted ON shld_external_users (external_user_id, provider_id, deleted_at); | ||
-- +goose StatementBegin | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
DROP INDEX idx_external_user_provider_deleted ON shld_external_users; | ||
-- +goose StatementBegin | ||
-- +goose StatementEnd |