analytics/priv/repo/migrations/20221109082503_add_rate_limiting_to_sites.exs
Adam Rutkowski aa248dde2e
Add sites metadata rate limit migration (#2428)
* Generate ecto migration for rate limiting sites

* Add ingest rate limit meta-data migration

* Make scale limit seconds not nullable
2022-11-09 11:40:05 +01:00

11 lines
285 B
Elixir

defmodule Plausible.Repo.Migrations.AddRateLimitingToSites do
use Ecto.Migration
def change do
alter table(:sites) do
add :ingest_rate_limit_scale_seconds, :integer, null: false, default: 60
add :ingest_rate_limit_threshold, :integer, null: true
end
end
end