From 00fc7d107db39d940b06e0196c2833443f11a4c0 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 3 Oct 2023 11:30:17 +1100 Subject: [PATCH] feat: add version_id indexes to deployed_versions and released_versions PACT-1359 --- .../20231002_add_version_id_index_to_released_version.rb | 7 +++++++ .../20231003_add_version_id_index_to_deployed_version.rb | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 db/migrations/20231002_add_version_id_index_to_released_version.rb create mode 100644 db/migrations/20231003_add_version_id_index_to_deployed_version.rb diff --git a/db/migrations/20231002_add_version_id_index_to_released_version.rb b/db/migrations/20231002_add_version_id_index_to_released_version.rb new file mode 100644 index 000000000..880a6f421 --- /dev/null +++ b/db/migrations/20231002_add_version_id_index_to_released_version.rb @@ -0,0 +1,7 @@ +Sequel.migration do + change do + alter_table(:released_versions) do + add_index(:version_id, name: "released_versions_version_id_ndx") + end + end +end diff --git a/db/migrations/20231003_add_version_id_index_to_deployed_version.rb b/db/migrations/20231003_add_version_id_index_to_deployed_version.rb new file mode 100644 index 000000000..483a63486 --- /dev/null +++ b/db/migrations/20231003_add_version_id_index_to_deployed_version.rb @@ -0,0 +1,7 @@ +Sequel.migration do + change do + alter_table(:deployed_versions) do + add_index(:version_id, name: "deployed_versions_version_id_ndx") + end + end +end