diff --git a/internal/db/schema/migrations/oss/postgres/72/02_session_connection_index.up.sql b/internal/db/schema/migrations/oss/postgres/72/02_session_connection_index.up.sql new file mode 100644 index 000000000..873c23738 --- /dev/null +++ b/internal/db/schema/migrations/oss/postgres/72/02_session_connection_index.up.sql @@ -0,0 +1,9 @@ +-- Copyright (c) HashiCorp, Inc. +-- SPDX-License-Identifier: MPL-2.0 + +begin; + + create index if not exists session_connection_worker_id_closed_reason_ix + on session_connection (worker_id, closed_reason); + +commit;