Skip to content

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

Migration: Add `accept_traffic_until` to "sites" (#3627)

hq13f5eecf15f49
diff --git a/priv/repo/migrations/20231211092344_add_accept_traffic_until_to_sites.exs b/priv/repo/migrations/20231211092344_add_accept_traffic_until_to_sites.exs
new file mode 100644
index 0000000000..90dc6ca812
--- /dev/null
+++ b/priv/repo/migrations/20231211092344_add_accept_traffic_until_to_sites.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.AddAcceptTrafficUntilToSites do
+ use Ecto.Migration
+
+ def change do
+ alter table(:sites) do
+ add :accept_traffic_until, :naive_datetime
+ end
+ end
+end