From 40f0d4bfbf3305547e73b1ba2974d207c7b93223 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 11 Dec 2025 13:22:36 +0100 Subject: [PATCH] Migration: make `goals.custom_props` non-null (#5945) --- .../20251211110619_goals_custom_props_default.exs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 priv/repo/migrations/20251211110619_goals_custom_props_default.exs diff --git a/priv/repo/migrations/20251211110619_goals_custom_props_default.exs b/priv/repo/migrations/20251211110619_goals_custom_props_default.exs new file mode 100644 index 0000000000..e08ac4e235 --- /dev/null +++ b/priv/repo/migrations/20251211110619_goals_custom_props_default.exs @@ -0,0 +1,9 @@ +defmodule Plausible.Repo.Migrations.GoalsCustomPropsDefault do + use Ecto.Migration + + def change do + alter table(:goals) do + modify(:custom_props, :map, null: false, default: %{}) + end + end +end