From 0e6fc80e8b77b09d68acfa003f7e57438f38a154 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:36:59 +0100 Subject: [PATCH] chore: synchronize workspaces --- ...1106142200000001_identities.autocommit.cockroach.up.sql | 2 ++ .../20241106142200000001_identities.autocommit.down.sql | 6 +----- ...241106142200000001_identities.autocommit.mysql.down.sql | 6 +----- ...20241106142200000001_identities.autocommit.mysql.up.sql | 5 ----- .../sql/20241106142200000001_identities.autocommit.up.sql | 7 ++----- 5 files changed, 6 insertions(+), 20 deletions(-) create mode 100644 persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.cockroach.up.sql delete mode 100644 persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.up.sql diff --git a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.cockroach.up.sql b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.cockroach.up.sql new file mode 100644 index 000000000000..d963f3fb9ed0 --- /dev/null +++ b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.cockroach.up.sql @@ -0,0 +1,2 @@ +CREATE INDEX identity_credential_identifiers_nid_ici_idx + ON identity_credentials_identifiers (nid ASC, identity_credential_id ASC) STORING (identifier); diff --git a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.down.sql b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.down.sql index b39e66c83843..d6099c4fae29 100644 --- a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.down.sql +++ b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.down.sql @@ -1,5 +1 @@ -CREATE INDEX IF NOT EXISTS identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses(identity_id ASC); -CREATE INDEX IF NOT EXISTS identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses (identity_id ASC); - -DROP INDEX IF EXISTS identity_recovery_addresses_identity_id_id_idx; -DROP INDEX IF EXISTS identity_verifiable_addresses_identity_id_id_idx; +DROP INDEX identity_credential_identifiers_nid_ici_idx; diff --git a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.down.sql b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.down.sql index 842b952cf594..5ba101fd8544 100644 --- a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.down.sql +++ b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.down.sql @@ -1,5 +1 @@ -CREATE INDEX identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses (identity_id ASC); -CREATE INDEX identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses (identity_id ASC); - -DROP INDEX identity_recovery_addresses_identity_id_id_idx ON identity_recovery_addresses; -DROP INDEX identity_verifiable_addresses_identity_id_id_idx ON identity_verifiable_addresses; +DROP INDEX identity_credential_identifiers_nid_ici_idx ON identity_credentials_identifiers; diff --git a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.up.sql b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.up.sql deleted file mode 100644 index 1e6da980d168..000000000000 --- a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.mysql.up.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE INDEX IF NOT EXISTS identity_recovery_addresses_identity_id_id_idx ON identity_recovery_addresses(identity_id ASC, id ASC); -CREATE INDEX IF NOT EXISTS identity_verifiable_addresses_identity_id_id_idx ON identity_verifiable_addresses (identity_id ASC, id ASC); - -DROP INDEX IF EXISTS identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses; -DROP INDEX IF EXISTS identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses; diff --git a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.up.sql b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.up.sql index 3cbddf7957a6..6819e3349b96 100644 --- a/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.up.sql +++ b/persistence/sql/migrations/sql/20241106142200000001_identities.autocommit.up.sql @@ -1,5 +1,2 @@ -CREATE INDEX IF NOT EXISTS identity_recovery_addresses_identity_id_id_idx ON identity_recovery_addresses(identity_id ASC, id ASC); -CREATE INDEX IF NOT EXISTS identity_verifiable_addresses_identity_id_id_idx ON identity_verifiable_addresses (identity_id ASC, id ASC); - -DROP INDEX IF EXISTS identity_recovery_addresses_identity_id_idx; -DROP INDEX IF EXISTS identity_verifiable_addresses_identity_id_idx; +CREATE INDEX identity_credential_identifiers_nid_ici_idx + ON identity_credentials_identifiers (nid ASC, identity_credential_id AS);