- Make changes to the schema in
src/db/schema.ts - Run
npx drizzle-kit generateto generate the migration - Run
npx drizzle-kit migrateto apply the migration - Run
npx drizzle-kit pushto push the migration to the database
For making changes to the prod database, you will need to change the NODE_ENV in .env to production and run npx drizzle-kit migrate or push the migration.
To learn more about Drizzle, see the Drizzle docs