Add unique index to monthly reports site id

This commit is contained in:
Uku Taht 2019-12-16 14:53:28 +08:00
parent c6021cfdb5
commit 4b29735c0c

View File

@ -0,0 +1,8 @@
defmodule Plausible.Repo.Migrations.AddUniqueIndexToEmailReports do
use Ecto.Migration
use Plausible.Repo
def change do
create unique_index(:monthly_reports, :site_id)
end
end