Add unique index to shared link name
parent
3ed964b45b
commit
2fc136777c
@ -0,0 +1,7 @@
|
||||
defmodule Plausible.Repo.Migrations.AddUniqueIndexToSharedLinkName do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create unique_index(:shared_links, [:site_id, :name], name: :shared_links_site_id_name_index)
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue