-
-
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
5 changed files
with
200 additions
and
207 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
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
110 changes: 55 additions & 55 deletions
110
persistence/sql/migrations/sql/20220512102703000000_missing_indices.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,70 +1,70 @@ | ||
CREATE INDEX `sessions_identity_id_nid_idx` ON `sessions` (identity_id, nid); | ||
CREATE INDEX sessions_identity_id_nid_idx ON sessions (identity_id, nid); | ||
|
||
DROP INDEX `identities_nid_idx`; | ||
CREATE INDEX `identities_id_nid_idx` ON `identities` (id, nid); | ||
CREATE INDEX `identities_nid_id_idx` ON `identities` (nid, id); | ||
DROP INDEX identities_nid_idx ON identities; | ||
CREATE INDEX identities_id_nid_idx ON identities (id, nid); | ||
CREATE INDEX identities_nid_id_idx ON identities (nid, id); | ||
|
||
DROP INDEX `continuity_containers_nid_idx`; | ||
CREATE INDEX `continuity_containers_nid_id_idx` ON `continuity_containers` (nid, id); | ||
CREATE INDEX `continuity_containers_id_nid_idx` ON `continuity_containers` (id, nid); | ||
DROP INDEX continuity_containers_nid_idx ON continuity_containers; | ||
CREATE INDEX continuity_containers_nid_id_idx ON continuity_containers (nid, id); | ||
CREATE INDEX continuity_containers_id_nid_idx ON continuity_containers (id, nid); | ||
|
||
DROP INDEX `courier_message_nid_idx`; | ||
CREATE INDEX `courier_message_nid_id_idx` ON `courier_message` (nid, id); | ||
CREATE INDEX `courier_message_id_nid_idx` ON `courier_message` (id, nid); | ||
DROP INDEX courier_messages_nid_idx ON courier_messages; | ||
CREATE INDEX courier_messages_nid_id_idx ON courier_messages (nid, id); | ||
CREATE INDEX courier_messages_id_nid_idx ON courier_messages (id, nid); | ||
|
||
DROP INDEX `identity_credential_identifiers_nid_idx`; | ||
CREATE INDEX `identity_credential_identifiers_nid_id_idx` ON `identity_credential_identifiers` (nid, id); | ||
CREATE INDEX `identity_credential_identifiers_id_nid_idx` ON `identity_credential_identifiers` (id, nid); | ||
DROP INDEX identity_credential_identifiers_nid_idx ON identity_credential_identifiers; | ||
CREATE INDEX identity_credential_identifiers_nid_id_idx ON identity_credential_identifiers (nid, id); | ||
CREATE INDEX identity_credential_identifiers_id_nid_idx ON identity_credential_identifiers (id, nid); | ||
|
||
DROP INDEX `identity_credentials_nid_idx`; | ||
CREATE INDEX `identity_credentials_nid_id_idx` ON `identity_credentials` (nid, id); | ||
CREATE INDEX `identity_credentials_id_nid_idx` ON `identity_credentials` (id, nid); | ||
DROP INDEX identity_credentials_nid_idx ON identity_credentials; | ||
CREATE INDEX identity_credentials_nid_id_idx ON identity_credentials (nid, id); | ||
CREATE INDEX identity_credentials_id_nid_idx ON identity_credentials (id, nid); | ||
|
||
DROP INDEX `identity_recovery_addresses_nid_idx`; | ||
CREATE INDEX `identity_recovery_addresses_nid_id_idx` ON `identity_recovery_addresses` (nid, id); | ||
CREATE INDEX `identity_recovery_addresses_id_nid_idx` ON `identity_recovery_addresses` (id, nid); | ||
DROP INDEX identity_recovery_addresses_nid_idx ON identity_recovery_addresses; | ||
CREATE INDEX identity_recovery_addresses_nid_id_idx ON identity_recovery_addresses (nid, id); | ||
CREATE INDEX identity_recovery_addresses_id_nid_idx ON identity_recovery_addresses (id, nid); | ||
|
||
DROP INDEX `identity_recovery_tokens_nid_idx`; | ||
CREATE INDEX `identity_recovery_tokens_nid_id_idx` ON `identity_recovery_tokens` (nid, id); | ||
CREATE INDEX `identity_recovery_tokens_id_nid_idx` ON `identity_recovery_tokens` (id, nid); | ||
CREATE INDEX `identity_recovery_tokens_selfservice_recovery_flow_id_idx` ON `identity_recovery_tokens` (selfservice_recovery_flow_id); | ||
CREATE INDEX `identity_recovery_tokens_identity_recovery_address_id_idx` ON `identity_recovery_tokens` (identity_recovery_address_id); | ||
CREATE INDEX `identity_recovery_tokens_token_nid_used_idx` ON `identity_recovery_tokens` (nid, token, used); | ||
DROP INDEX `identity_recovery_addresses_code_idx`; | ||
DROP INDEX identity_recovery_tokens_nid_idx ON identity_recovery_tokens; | ||
DROP INDEX identity_recovery_addresses_code_idx ON identity_recovery_tokens; | ||
CREATE INDEX identity_recovery_tokens_nid_id_idx ON identity_recovery_tokens (nid, id); | ||
CREATE INDEX identity_recovery_tokens_id_nid_idx ON identity_recovery_tokens (id, nid); | ||
CREATE INDEX identity_recovery_tokens_selfservice_recovery_flow_id_idx ON identity_recovery_tokens (selfservice_recovery_flow_id); | ||
CREATE INDEX identity_recovery_tokens_identity_recovery_address_id_idx ON identity_recovery_tokens (identity_recovery_address_id); | ||
CREATE INDEX identity_recovery_tokens_token_nid_used_idx ON identity_recovery_tokens (nid, token, used); | ||
|
||
DROP INDEX `identity_verifiable_addresses_nid_idx`; | ||
CREATE INDEX `identity_verifiable_addresses_nid_id_idx` ON `identity_verifiable_addresses` (nid, id); | ||
CREATE INDEX `identity_verifiable_addresses_id_nid_idx` ON `identity_verifiable_addresses` (id, nid); | ||
DROP INDEX identity_verifiable_addresses_nid_idx ON identity_verifiable_addresses; | ||
CREATE INDEX identity_verifiable_addresses_nid_id_idx ON identity_verifiable_addresses (nid, id); | ||
CREATE INDEX identity_verifiable_addresses_id_nid_idx ON identity_verifiable_addresses (id, nid); | ||
|
||
DROP INDEX `identity_verification_tokens_nid_idx`; | ||
DROP INDEX `identity_verification_tokens_token_idx`; | ||
CREATE INDEX `identity_verification_tokens_nid_id_idx` ON `identity_verification_tokens` (nid, id); | ||
CREATE INDEX `identity_verification_tokens_id_nid_idx` ON `identity_verification_tokens` (id, nid); | ||
CREATE INDEX `identity_verification_tokens_token_nid_used_idx` ON `identity_verification_tokens` (nid, token, used); | ||
DROP INDEX identity_verification_tokens_nid_idx ON identity_verification_tokens; | ||
DROP INDEX identity_verification_tokens_token_idx ON identity_verification_tokens; | ||
CREATE INDEX identity_verification_tokens_nid_id_idx ON identity_verification_tokens (nid, id); | ||
CREATE INDEX identity_verification_tokens_id_nid_idx ON identity_verification_tokens (id, nid); | ||
CREATE INDEX identity_verification_tokens_token_nid_used_idx ON identity_verification_tokens (nid, token, used); | ||
|
||
DROP INDEX `selfservice_login_flows_nid_idx`; | ||
CREATE INDEX `selfservice_login_flows_nid_id_idx` ON `selfservice_login_flows` (nid, id); | ||
CREATE INDEX `selfservice_login_flows_id_nid_idx` ON `selfservice_login_flows` (id, nid); | ||
DROP INDEX selfservice_login_flows_nid_idx ON selfservice_login_flows; | ||
CREATE INDEX selfservice_login_flows_nid_id_idx ON selfservice_login_flows (nid, id); | ||
CREATE INDEX selfservice_login_flows_id_nid_idx ON selfservice_login_flows (id, nid); | ||
|
||
DROP INDEX `selfservice_recovery_flows_nid_idx`; | ||
CREATE INDEX `selfservice_recovery_flows_nid_id_idx` ON `selfservice_recovery_flows` (nid, id); | ||
CREATE INDEX `selfservice_recovery_flows_id_nid_idx` ON `selfservice_recovery_flows` (id, nid); | ||
DROP INDEX selfservice_recovery_flows_nid_idx ON selfservice_recovery_flows; | ||
CREATE INDEX selfservice_recovery_flows_nid_id_idx ON selfservice_recovery_flows (nid, id); | ||
CREATE INDEX selfservice_recovery_flows_id_nid_idx ON selfservice_recovery_flows (id, nid); | ||
|
||
DROP INDEX `selfservice_registration_flows_nid_idx`; | ||
CREATE INDEX `selfservice_registration_flows_nid_id_idx` ON `selfservice_registration_flows` (nid, id); | ||
CREATE INDEX `selfservice_registration_flows_id_nid_idx` ON `selfservice_registration_flows` (id, nid); | ||
DROP INDEX selfservice_registration_flows_nid_idx ON selfservice_registration_flows; | ||
CREATE INDEX selfservice_registration_flows_nid_id_idx ON selfservice_registration_flows (nid, id); | ||
CREATE INDEX selfservice_registration_flows_id_nid_idx ON selfservice_registration_flows (id, nid); | ||
|
||
DROP INDEX `selfservice_settings_flows_nid_idx`; | ||
CREATE INDEX `selfservice_settings_flows_nid_id_idx` ON `selfservice_settings_flows` (nid, id); | ||
CREATE INDEX `selfservice_settings_flows_id_nid_idx` ON `selfservice_settings_flows` (id, nid); | ||
DROP INDEX selfservice_settings_flows_nid_idx ON selfservice_settings_flows; | ||
CREATE INDEX selfservice_settings_flows_nid_id_idx ON selfservice_settings_flows (nid, id); | ||
CREATE INDEX selfservice_settings_flows_id_nid_idx ON selfservice_settings_flows (id, nid); | ||
|
||
DROP INDEX `selfservice_verification_flows_nid_idx`; | ||
CREATE INDEX `selfservice_verification_flows_nid_id_idx` ON `selfservice_verification_flows` (nid, id); | ||
CREATE INDEX `selfservice_verification_flows_id_nid_idx` ON `selfservice_verification_flows` (id, nid); | ||
DROP INDEX selfservice_verification_flows_nid_idx ON selfservice_verification_flows; | ||
CREATE INDEX selfservice_verification_flows_nid_id_idx ON selfservice_verification_flows (nid, id); | ||
CREATE INDEX selfservice_verification_flows_id_nid_idx ON selfservice_verification_flows (id, nid); | ||
|
||
DROP INDEX `sessions_nid_idx`; | ||
DROP INDEX sessions_token_idx; | ||
DROP INDEX sessions_logout_token_idx; | ||
CREATE INDEX `sessions_nid_id_identity_id_idx` ON `sessions` (nid, identity_id, id); | ||
CREATE INDEX `sessions_id_nid_idx` ON `sessions` (id, nid); | ||
CREATE INDEX `sessions_token_nid_idx` ON `sessions` (nid, token); | ||
DROP INDEX sessions_nid_idx ON sessions; | ||
DROP INDEX sessions_token_idx ON sessions; | ||
DROP INDEX sessions_logout_token_idx ON sessions; | ||
CREATE INDEX sessions_nid_id_identity_id_idx ON sessions (nid, identity_id, id); | ||
CREATE INDEX sessions_id_nid_idx ON sessions (id, nid); | ||
CREATE INDEX sessions_token_nid_idx ON sessions (nid, token); |
Oops, something went wrong.