From ad0619d803cd2842a67c56a545ec5ab252501b0f Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:41:17 +0100 Subject: [PATCH] fix: drop index if exists (#3846) --- ...325153839000000_drop_identity_search_index.cockroach.down.sql | 1 + ...40325153839000000_drop_identity_search_index.cockroach.up.sql | 1 + .../sql/20240325153839000000_drop_identity_search_index.down.sql | 0 .../sql/20240325153839000000_drop_identity_search_index.up.sql | 0 4 files changed, 2 insertions(+) create mode 100644 persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.down.sql create mode 100644 persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.up.sql create mode 100644 persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.down.sql create mode 100644 persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.up.sql diff --git a/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.down.sql b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.down.sql new file mode 100644 index 000000000000..f692e9943649 --- /dev/null +++ b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.down.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS identity_credential_identifiers_nid_identifier_gin ON identity_credential_identifiers USING GIN (nid, identifier gin_trgm_ops); diff --git a/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.up.sql b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.up.sql new file mode 100644 index 000000000000..d1c8cdf26841 --- /dev/null +++ b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.cockroach.up.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS identity_credential_identifiers_nid_identifier_gin; diff --git a/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.down.sql b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.down.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.up.sql b/persistence/sql/migrations/sql/20240325153839000000_drop_identity_search_index.up.sql new file mode 100644 index 000000000000..e69de29bb2d1