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
pull/2429/head r2022.11.09-16
Adam Rutkowski 4 years ago committed by GitHub
parent 042b448d30
commit aa248dde2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,10 @@
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
Loading…
Cancel
Save