mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 20:13:31 +03:00
aa248dde2e
* Generate ecto migration for rate limiting sites * Add ingest rate limit meta-data migration * Make scale limit seconds not nullable
11 lines
285 B
Elixir
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
|