Skip to content

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

Migration: store team setup information (#4943)

hq14eef88d99f11
diff --git a/priv/repo/migrations/20250107103333_team_setup_at.exs b/priv/repo/migrations/20250107103333_team_setup_at.exs
new file mode 100644
index 0000000000..96da998a9f
--- /dev/null
+++ b/priv/repo/migrations/20250107103333_team_setup_at.exs
@@ -0,0 +1,10 @@
+defmodule Plausible.Repo.Migrations.TeamSetupAt do
+ use Ecto.Migration
+
+ def change do
+ alter table(:teams) do
+ add :setup_complete, :boolean, default: false, null: false
+ add :setup_at, :naive_datetime, null: true
+ end
+ end
+end