mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
14 lines
320 B
Elixir
14 lines
320 B
Elixir
|
defmodule Plausible.Repo.Migrations.TrafficDropNotifications do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
drop index(:spike_notifications, [:site_id])
|
||
|
|
||
|
alter table(:spike_notifications) do
|
||
|
add :type, :string, default: "spike"
|
||
|
end
|
||
|
|
||
|
create unique_index(:spike_notifications, [:site_id, :type])
|
||
|
end
|
||
|
end
|