PhoenixKit.Migrations.Postgres.V130 (phoenix_kit v1.7.138)

Copy Markdown View Source

V130: Widen phoenix_kit_annotations_kind_check for the new "marker" kind.

The Media viewer exposes Etcher's marker (highlighter) tool. A marker persists like any other shape via annotations-changed, but it's pure marking — the viewer skips the annotation composer for it, so it carries no title/comment. Without widening the CHECK constraint (and the schema's @kinds) the insert is rejected and the marker silently fails to save across a reload.

Idempotent: each ADD CONSTRAINT is preceded by DROP CONSTRAINT IF EXISTS on the same prefixed table.

Summary

Functions

down(opts)

up(opts)