diff --git a/db/migrations/20230216_add_branch_heads_branch_version_id_index.rb b/db/migrations/20230216_add_branch_heads_branch_version_id_index.rb new file mode 100644 index 000000000..f41339b93 --- /dev/null +++ b/db/migrations/20230216_add_branch_heads_branch_version_id_index.rb @@ -0,0 +1,17 @@ +Sequel.migration do + up do + if !mysql? + alter_table(:branch_heads) do + add_index([:branch_version_id], name: "branch_heads_branch_version_id_index") + end + end + end + + down do + if !mysql? + alter_table(:branch_heads) do + drop_index([:branch_version_id], name: "branch_heads_branch_version_id_index") + end + end + end +end