diff --git a/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.down.sql b/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.down.sql index a7fe812fe93a..67a184b9d640 100644 --- a/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.down.sql +++ b/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.down.sql @@ -1 +1 @@ -DROP INDEX identities_organization_id; \ No newline at end of file +DROP INDEX identities_nid_organization_id; \ No newline at end of file diff --git a/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.up.sql b/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.up.sql index 2fc9301ddc82..392c23fe72ae 100644 --- a/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.up.sql +++ b/persistence/sql/migrations/sql/20240923095000000001_organization_id_index.up.sql @@ -1 +1 @@ -CREATE INDEX identities_organization_id ON identities (organization_id ASC); \ No newline at end of file +CREATE INDEX identities_nid_organization_id ON identities (nid, organization_id); \ No newline at end of file