Skip to content

Commit

Permalink
Update deployments index
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Aug 13, 2024
1 parent 960d6db commit 1a89e2f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
defmodule Uplink.Repo.Migrations.ChangeDeploymentsHashUniqueIndex do
use Ecto.Migration

def change do
drop index(:deployments, [:app_id, :hash], unique: true)
create index(:deployments, [:app_id, :hash, :channel], unique: true)
end
end

0 comments on commit 1a89e2f

Please sign in to comment.