Skip to content

Commit

Permalink
fix: add exists clause (#4191)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Nov 5, 2024
1 parent 234b6f2 commit a313dd6
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
DROP INDEX identities_id_nid_idx;
DROP INDEX IF EXISTS identities_id_nid_idx;

CREATE INDEX identity_recovery_addresses_identity_id_idx ON identity_recovery_addresses(identity_id ASC);
DROP INDEX identity_recovery_addresses_status_via_idx;
DROP INDEX identity_recovery_addresses_nid_identity_id_idx;
DROP INDEX identity_recovery_addresses_nid_id_idx;
DROP INDEX identity_recovery_addresses_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;

CREATE INDEX identity_verifiable_addresses_identity_id_idx ON identity_verifiable_addresses (identity_id ASC);
DROP INDEX identity_verifiable_addresses_status_via_idx;
DROP INDEX identity_verifiable_addresses_nid_identity_id_idx;
DROP INDEX identity_verifiable_addresses_nid_id_idx;
DROP INDEX identity_verifiable_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;

0 comments on commit a313dd6

Please sign in to comment.