Skip to content

Commit

Permalink
feat: add branch_heads_branch_version_id_index
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Feb 15, 2023
1 parent 85bcdb3 commit b1b4cef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b1b4cef

Please sign in to comment.