Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add sites metadata rate limit migration (#2428)

Adam Rutkowskiaa248dde2e42
diff --git a/priv/repo/migrations/20221109082503_add_rate_limiting_to_sites.exs b/priv/repo/migrations/20221109082503_add_rate_limiting_to_sites.exs
new file mode 100644
index 0000000000..20384727cf
--- /dev/null
+++ b/priv/repo/migrations/20221109082503_add_rate_limiting_to_sites.exs
@@ -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