D1 Migration Workflow Guided workflow for Cloudflare D1 database migrations using Drizzle ORM. Standard Migration Flow 1. Generate Migration This creates a new file in (or your configured migrations directory). 2. Inspect the SQL (CRITICAL) Always read the generated SQL before applying. Drizzle sometimes generates destructive migrations for simple schema changes. Red Flag: Table Recreation If you see this pattern, the migration will likely fail: Cause : Changing a column's value in Drizzle schema triggers full table recreation. The INSERT SELECT references the new column from the old table. F…