Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 7, 2024
1 parent 7fad519 commit 354521f
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 77 deletions.
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;
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;
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;
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;
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;
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;

0 comments on commit 354521f

Please sign in to comment.