Database Migrations Guide Step 1: Generate Migrations This generates: - And updates: - - - Custom Migrations (e.g. CREATE EXTENSION) For migrations that don't involve Drizzle schema changes (e.g. enabling PostgreSQL extensions), use the flag: This generates an empty SQL file and properly updates and snapshot. Then edit the generated SQL file to add your custom SQL: Do NOT manually create migration files or edit — always use to ensure correct journal entries and snapshots. Step 2: Optimize Migration SQL Filename Rename auto-generated filename to be meaningful: → Step 3: Use Idempotent Clauses…