Migration: make `goals.custom_props` non-null (#5945)

This commit is contained in:
Adam Rutkowski 2025-12-11 13:22:36 +01:00 committed by GitHub
parent e4b282a610
commit 40f0d4bfbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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