Added unique index to UUID fields

This commit is contained in:
Kieran Eglin 2024-03-27 09:59:36 -07:00
parent 2369cb3f27
commit 8cdd8ddf9e
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -0,0 +1,8 @@
defmodule Pinchflat.Repo.Migrations.AddIndexToUuidFields do
use Ecto.Migration
def change do
create unique_index(:sources, [:uuid])
create unique_index(:media_items, [:uuid])
end
end