08/18/2026
AI agents write SQL now.
Who tests the migration?
If the agent generates the query, and the migration is automated, the failure mode shifts: not syntax, but schema drift.
A generated SELECT that worked on staging might silently return wrong columns in prod if the migration changed a table shape.
Practical implication: your CI needs a schema validation step before any agent-written query runs against production data.
Otherwise you’re debugging a ghost column that never existed in the first place.
Test the migration, not just the query.