-
-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
77 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
persistence/sql/migrations/sql/20241029153900000001_identities.autocommit.up.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
DROP INDEX IF EXISTS identities_id_nid_idx; | ||
# DROP INDEX IF EXISTS identities_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses(identity_id ASC); | ||
DROP INDEX IF EXISTS identity_recovery_addresses_status_via_idx; | ||
DROP INDEX IF EXISTS identity_recovery_addresses_nid_identity_id_idx; | ||
DROP INDEX IF EXISTS identity_recovery_addresses_nid_id_idx; | ||
DROP INDEX IF EXISTS identity_recovery_addresses_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_addresses_status_via_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_addresses_nid_identity_id_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_addresses_nid_id_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_addresses_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses (identity_id ASC); | ||
DROP INDEX IF EXISTS identity_verifiable_addresses_status_via_idx; | ||
DROP INDEX IF EXISTS identity_verifiable_addresses_nid_identity_id_idx; | ||
DROP INDEX IF EXISTS identity_verifiable_addresses_nid_id_idx; | ||
DROP INDEX IF EXISTS identity_verifiable_addresses_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_verifiable_addresses_status_via_idx; | ||
# DROP INDEX IF EXISTS identity_verifiable_addresses_nid_identity_id_idx; | ||
# DROP INDEX IF EXISTS identity_verifiable_addresses_nid_id_idx; | ||
# DROP INDEX IF EXISTS identity_verifiable_addresses_id_nid_idx; |
16 changes: 8 additions & 8 deletions
16
persistence/sql/migrations/sql/20241029153900000001_identities.mysql.up.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
DROP INDEX identities_id_nid_idx ON identities; | ||
# DROP INDEX identities_id_nid_idx ON identities; | ||
|
||
CREATE INDEX identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses (identity_id ASC); | ||
DROP INDEX identity_recovery_addresses_status_via_idx ON identity_recovery_addresses; | ||
# DROP INDEX identity_recovery_addresses_status_via_idx ON identity_recovery_addresses; | ||
-- DROP INDEX identity_recovery_addresses_nid_identity_id_idx ON identity_recovery_addresses; | ||
DROP INDEX identity_recovery_addresses_nid_id_idx ON identity_recovery_addresses; | ||
DROP INDEX identity_recovery_addresses_id_nid_idx ON identity_recovery_addresses; | ||
# DROP INDEX identity_recovery_addresses_nid_id_idx ON identity_recovery_addresses; | ||
# DROP INDEX identity_recovery_addresses_id_nid_idx ON identity_recovery_addresses; | ||
|
||
CREATE INDEX identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses (identity_id ASC); | ||
DROP INDEX identity_verifiable_addresses_status_via_idx ON identity_verifiable_addresses; | ||
-- DROP INDEX identity_verifiable_addresses_nid_identity_id_idx ON identity_verifiable_addresses; | ||
DROP INDEX identity_verifiable_addresses_nid_id_idx ON identity_verifiable_addresses; | ||
DROP INDEX identity_verifiable_addresses_id_nid_idx ON identity_verifiable_addresses; | ||
# DROP INDEX identity_verifiable_addresses_status_via_idx ON identity_verifiable_addresses; | ||
# -- DROP INDEX identity_verifiable_addresses_nid_identity_id_idx ON identity_verifiable_addresses; | ||
# DROP INDEX identity_verifiable_addresses_nid_id_idx ON identity_verifiable_addresses; | ||
# DROP INDEX identity_verifiable_addresses_id_nid_idx ON identity_verifiable_addresses; |
58 changes: 29 additions & 29 deletions
58
...stence/sql/migrations/sql/20241031094100000001_remaining_unused_indices.autocommit.up.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 |
---|---|---|
@@ -1,56 +1,56 @@ | ||
CREATE INDEX IF NOT EXISTS session_devices_nid_idx ON session_devices (nid ASC); | ||
CREATE INDEX IF NOT EXISTS session_devices_session_id_idx ON session_devices (session_id ASC); | ||
DROP INDEX IF EXISTS session_devices_id_nid_idx; | ||
DROP INDEX IF EXISTS session_devices_session_id_nid_idx; | ||
# DROP INDEX IF EXISTS session_devices_id_nid_idx; | ||
# DROP INDEX IF EXISTS session_devices_session_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS session_token_exchanges_flow_id_nid_init_code_idx ON session_token_exchanges (flow_id ASC, nid ASC, init_code ASC); | ||
CREATE INDEX IF NOT EXISTS session_token_exchanges_nid_init_code_idx ON session_token_exchanges (nid ASC, init_code ASC); | ||
DROP INDEX IF EXISTS session_token_exchanges_nid_code_idx; | ||
DROP INDEX IF EXISTS session_token_exchanges_nid_flow_id_idx; | ||
# DROP INDEX IF EXISTS session_token_exchanges_nid_code_idx; | ||
# DROP INDEX IF EXISTS session_token_exchanges_nid_flow_id_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS courier_messages_status_id_idx ON courier_messages (status ASC, id ASC); | ||
CREATE INDEX IF NOT EXISTS courier_messages_nid_id_created_at_idx ON courier_messages (nid ASC, id ASC, created_at DESC); | ||
DROP INDEX IF EXISTS courier_messages_status_idx; | ||
DROP INDEX IF EXISTS courier_messages_nid_id_idx; | ||
DROP INDEX IF EXISTS courier_messages_id_nid_idx; | ||
DROP INDEX IF EXISTS courier_messages_nid_created_at_id_idx; | ||
# DROP INDEX IF EXISTS courier_messages_status_idx; | ||
# DROP INDEX IF EXISTS courier_messages_nid_id_idx; | ||
# DROP INDEX IF EXISTS courier_messages_id_nid_idx; | ||
# DROP INDEX IF EXISTS courier_messages_nid_created_at_id_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS continuity_containers_identity_id_idx ON continuity_containers (identity_id ASC); | ||
CREATE INDEX IF NOT EXISTS continuity_containers_nid_idx ON continuity_containers (nid ASC); | ||
DROP INDEX IF EXISTS continuity_containers_nid_id_idx; | ||
DROP INDEX IF EXISTS continuity_containers_id_nid_idx; | ||
DROP INDEX IF EXISTS continuity_containers_identity_id_nid_idx; | ||
# DROP INDEX IF EXISTS continuity_containers_nid_id_idx; | ||
# DROP INDEX IF EXISTS continuity_containers_id_nid_idx; | ||
# DROP INDEX IF EXISTS continuity_containers_identity_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_verification_codes_identity_verifiable_address_id_idx ON identity_verification_codes (identity_verifiable_address_id ASC); | ||
CREATE INDEX IF NOT EXISTS identity_verification_codes_nid_idx ON identity_verification_codes (nid ASC); | ||
DROP INDEX IF EXISTS identity_verification_codes_nid_flow_id_idx; | ||
DROP INDEX IF EXISTS identity_verification_codes_id_nid_idx; | ||
DROP INDEX IF EXISTS identity_verification_codes_verifiable_address_nid_idx; | ||
# DROP INDEX IF EXISTS identity_verification_codes_nid_flow_id_idx; | ||
# DROP INDEX IF EXISTS identity_verification_codes_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_verification_codes_verifiable_address_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_verification_tokens_nid_idx ON identity_verification_tokens (nid ASC); | ||
DROP INDEX IF EXISTS identity_verification_tokens_nid_id_idx; | ||
DROP INDEX IF EXISTS identity_verification_tokens_id_nid_idx; | ||
DROP INDEX IF EXISTS identity_verification_tokens_token_nid_used_flow_id_idx; | ||
# DROP INDEX IF EXISTS identity_verification_tokens_nid_id_idx; | ||
# DROP INDEX IF EXISTS identity_verification_tokens_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_verification_tokens_token_nid_used_flow_id_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_registration_codes_nid_idx ON identity_registration_codes (nid ASC); | ||
DROP INDEX IF EXISTS identity_registration_codes_nid_flow_id_idx; | ||
DROP INDEX IF EXISTS identity_registration_codes_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_registration_codes_nid_flow_id_idx; | ||
# DROP INDEX IF EXISTS identity_registration_codes_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_recovery_tokens_identity_id_idx ON identity_recovery_tokens (identity_id ASC); | ||
CREATE INDEX IF NOT EXISTS identity_recovery_tokens_nid_idx ON identity_recovery_tokens (nid ASC); | ||
DROP INDEX IF EXISTS identity_recovery_tokens_nid_id_idx; | ||
DROP INDEX IF EXISTS identity_recovery_tokens_id_nid_idx; | ||
DROP INDEX IF EXISTS identity_recovery_tokens_token_nid_used_idx; | ||
DROP INDEX IF EXISTS identity_recovery_tokens_identity_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_tokens_nid_id_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_tokens_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_tokens_token_nid_used_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_tokens_identity_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_recovery_codes_identity_recovery_address_id_idx ON identity_recovery_codes (identity_recovery_address_id ASC); | ||
CREATE INDEX IF NOT EXISTS identity_recovery_codes_identity_id_idx ON identity_recovery_codes (identity_id ASC); | ||
CREATE INDEX IF NOT EXISTS identity_recovery_codes_nid_idx ON identity_recovery_codes (nid ASC); | ||
DROP INDEX IF EXISTS identity_recovery_codes_nid_flow_id_idx; | ||
DROP INDEX IF EXISTS identity_recovery_codes_id_nid_idx; | ||
DROP INDEX IF EXISTS identity_recovery_codes_identity_id_nid_idx; | ||
DROP INDEX IF EXISTS identity_recovery_codes_identity_recovery_address_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_codes_nid_flow_id_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_codes_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_codes_identity_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_recovery_codes_identity_recovery_address_id_nid_idx; | ||
|
||
CREATE INDEX IF NOT EXISTS identity_login_codes_nid_idx ON identity_login_codes (nid ASC); | ||
DROP INDEX IF EXISTS identity_login_codes_nid_flow_id_idx; | ||
DROP INDEX IF EXISTS identity_login_codes_id_nid_idx; | ||
# DROP INDEX IF EXISTS identity_login_codes_nid_flow_id_idx; | ||
# DROP INDEX IF EXISTS identity_login_codes_id_nid_idx; |
58 changes: 29 additions & 29 deletions
58
.../sql/migrations/sql/20241031094100000001_remaining_unused_indices.mysql.autocommit.up.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 |
---|---|---|
@@ -1,56 +1,56 @@ | ||
CREATE INDEX session_devices_nid_idx ON session_devices (nid ASC); | ||
CREATE INDEX session_devices_session_id_idx ON session_devices (session_id ASC); | ||
DROP INDEX session_devices_id_nid_idx ON session_devices; | ||
DROP INDEX session_devices_session_id_nid_idx ON session_devices; | ||
# DROP INDEX session_devices_id_nid_idx ON session_devices; | ||
# DROP INDEX session_devices_session_id_nid_idx ON session_devices; | ||
|
||
CREATE INDEX session_token_exchanges_flow_id_nid_init_code_idx ON session_token_exchanges (flow_id ASC, nid ASC, init_code ASC); | ||
CREATE INDEX session_token_exchanges_nid_init_code_idx ON session_token_exchanges (nid ASC, init_code ASC); | ||
DROP INDEX session_token_exchanges_nid_code_idx ON session_token_exchanges; | ||
DROP INDEX session_token_exchanges_nid_flow_id_idx ON session_token_exchanges; | ||
# DROP INDEX session_token_exchanges_nid_code_idx ON session_token_exchanges; | ||
# DROP INDEX session_token_exchanges_nid_flow_id_idx ON session_token_exchanges; | ||
|
||
CREATE INDEX courier_messages_status_id_idx ON courier_messages (status ASC, id ASC); | ||
CREATE INDEX courier_messages_nid_id_created_at_idx ON courier_messages (nid ASC, id ASC, created_at DESC); | ||
DROP INDEX courier_messages_status_idx ON courier_messages; | ||
DROP INDEX courier_messages_nid_id_idx ON courier_messages; | ||
DROP INDEX courier_messages_id_nid_idx ON courier_messages; | ||
DROP INDEX courier_messages_nid_created_at_id_idx ON courier_messages; | ||
# DROP INDEX courier_messages_status_idx ON courier_messages; | ||
# DROP INDEX courier_messages_nid_id_idx ON courier_messages; | ||
# DROP INDEX courier_messages_id_nid_idx ON courier_messages; | ||
# DROP INDEX courier_messages_nid_created_at_id_idx ON courier_messages; | ||
|
||
CREATE INDEX continuity_containers_identity_id_idx ON continuity_containers (identity_id ASC); | ||
CREATE INDEX continuity_containers_nid_idx ON continuity_containers (nid ASC); | ||
DROP INDEX continuity_containers_nid_id_idx ON continuity_containers; | ||
DROP INDEX continuity_containers_id_nid_idx ON continuity_containers; | ||
DROP INDEX continuity_containers_identity_id_nid_idx ON continuity_containers; | ||
# DROP INDEX continuity_containers_nid_id_idx ON continuity_containers; | ||
# DROP INDEX continuity_containers_id_nid_idx ON continuity_containers; | ||
# DROP INDEX continuity_containers_identity_id_nid_idx ON continuity_containers; | ||
|
||
CREATE INDEX identity_verification_codes_verifiable_address_idx ON identity_verification_codes (identity_verifiable_address_id ASC); | ||
CREATE INDEX identity_verification_codes_nid_idx ON identity_verification_codes (nid ASC); | ||
DROP INDEX identity_verification_codes_nid_flow_id_idx ON identity_verification_codes; | ||
DROP INDEX identity_verification_codes_id_nid_idx ON identity_verification_codes; | ||
DROP INDEX identity_verification_codes_verifiable_address_nid_idx ON identity_verification_codes; | ||
# DROP INDEX identity_verification_codes_nid_flow_id_idx ON identity_verification_codes; | ||
# DROP INDEX identity_verification_codes_id_nid_idx ON identity_verification_codes; | ||
# DROP INDEX identity_verification_codes_verifiable_address_nid_idx ON identity_verification_codes; | ||
|
||
CREATE INDEX identity_verification_tokens_nid_idx ON identity_verification_tokens (nid ASC); | ||
DROP INDEX identity_verification_tokens_nid_id_idx ON identity_verification_tokens; | ||
DROP INDEX identity_verification_tokens_id_nid_idx ON identity_verification_tokens; | ||
DROP INDEX identity_verification_tokens_token_nid_used_flow_id_idx ON identity_verification_tokens; | ||
# DROP INDEX identity_verification_tokens_nid_id_idx ON identity_verification_tokens; | ||
# DROP INDEX identity_verification_tokens_id_nid_idx ON identity_verification_tokens; | ||
# DROP INDEX identity_verification_tokens_token_nid_used_flow_id_idx ON identity_verification_tokens; | ||
|
||
CREATE INDEX identity_registration_codes_nid_idx ON identity_registration_codes (nid ASC); | ||
DROP INDEX identity_registration_codes_nid_flow_id_idx ON identity_registration_codes; | ||
DROP INDEX identity_registration_codes_id_nid_idx ON identity_registration_codes; | ||
# DROP INDEX identity_registration_codes_nid_flow_id_idx ON identity_registration_codes; | ||
# DROP INDEX identity_registration_codes_id_nid_idx ON identity_registration_codes; | ||
|
||
CREATE INDEX identity_recovery_tokens_identity_id_idx ON identity_recovery_tokens (identity_id ASC); | ||
CREATE INDEX identity_recovery_tokens_nid_idx ON identity_recovery_tokens (nid ASC); | ||
DROP INDEX identity_recovery_tokens_nid_id_idx ON identity_recovery_tokens; | ||
DROP INDEX identity_recovery_tokens_id_nid_idx ON identity_recovery_tokens; | ||
DROP INDEX identity_recovery_tokens_token_nid_used_idx ON identity_recovery_tokens; | ||
DROP INDEX identity_recovery_tokens_identity_id_nid_idx ON identity_recovery_tokens; | ||
# DROP INDEX identity_recovery_tokens_nid_id_idx ON identity_recovery_tokens; | ||
# DROP INDEX identity_recovery_tokens_id_nid_idx ON identity_recovery_tokens; | ||
# DROP INDEX identity_recovery_tokens_token_nid_used_idx ON identity_recovery_tokens; | ||
# DROP INDEX identity_recovery_tokens_identity_id_nid_idx ON identity_recovery_tokens; | ||
|
||
CREATE INDEX identity_recovery_codes_address_id_idx ON identity_recovery_codes (identity_recovery_address_id ASC); | ||
CREATE INDEX identity_recovery_codes_identity_id_idx ON identity_recovery_codes (identity_id ASC); | ||
CREATE INDEX identity_recovery_codes_nid_idx ON identity_recovery_codes (nid ASC); | ||
DROP INDEX identity_recovery_codes_nid_flow_id_idx ON identity_recovery_codes; | ||
DROP INDEX identity_recovery_codes_id_nid_idx ON identity_recovery_codes; | ||
DROP INDEX identity_recovery_codes_identity_id_nid_idx ON identity_recovery_codes; | ||
DROP INDEX identity_recovery_codes_identity_recovery_address_id_nid_idx ON identity_recovery_codes; | ||
# DROP INDEX identity_recovery_codes_nid_flow_id_idx ON identity_recovery_codes; | ||
# DROP INDEX identity_recovery_codes_id_nid_idx ON identity_recovery_codes; | ||
# DROP INDEX identity_recovery_codes_identity_id_nid_idx ON identity_recovery_codes; | ||
# DROP INDEX identity_recovery_codes_identity_recovery_address_id_nid_idx ON identity_recovery_codes; | ||
|
||
CREATE INDEX identity_login_codes_nid_idx ON identity_login_codes (nid ASC); | ||
DROP INDEX identity_login_codes_nid_flow_id_idx ON identity_login_codes; | ||
DROP INDEX identity_login_codes_id_nid_idx ON identity_login_codes; | ||
# DROP INDEX identity_login_codes_nid_flow_id_idx ON identity_login_codes; | ||
# DROP INDEX identity_login_codes_id_nid_idx ON identity_login_codes; |
2 changes: 1 addition & 1 deletion
2
persistence/sql/migrations/sql/20241106142200000002_identities.autocommit.up.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE INDEX IF NOT EXISTS identity_credential_identifiers_ici_nid_i_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC, nid ASC, identifier ASC); | ||
|
||
DROP INDEX IF EXISTS identity_credential_identifiers_identity_credential_id_idx; | ||
# DROP INDEX IF EXISTS identity_credential_identifiers_identity_credential_id_idx; |
2 changes: 1 addition & 1 deletion
2
persistence/sql/migrations/sql/20241106142200000002_identities.mysql.autocommit.up.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CREATE INDEX identity_credential_identifiers_ici_nid_i_idx | ||
ON identity_credential_identifiers (identity_credential_id ASC, nid ASC, identifier ASC); | ||
|
||
DROP INDEX identity_credential_identifiers_identity_credential_id_idx ON identity_credential_identifiers; | ||
# DROP INDEX identity_credential_identifiers_identity_credential_id_idx ON identity_credential_identifiers; |