mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-05 16:02:12 +00:00
MySQL does not allow DEFAULT values on TEXT/BLOB/JSON columns (error 1101).
Split the ALTER TABLE migration into three steps for MySQL: add as nullable
TEXT, backfill existing rows with '{}', then promote to NOT NULL.
PostgreSQL path is unchanged.