From 1bf151bfcad2ae08016d400ffefbe62dd673d993 Mon Sep 17 00:00:00 2001 From: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com> Date: Thu, 5 Nov 2026 12:00:35 +1100 Subject: [PATCH] Remove db:push: schema changes go through wrangler-applied migrations --- drizzle.config.ts | 7 ++++--- package.json | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drizzle.config.ts b/drizzle.config.ts index 2cae5e5..48dcf17 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -3,9 +3,10 @@ import { defineConfig } from 'drizzle-kit' config({ path: ['.env.local', '.env'] }) -// The d1-http driver targets the *remote* D1 database (db:push, db:studio); -// the credentials are only required for those commands. Local development -// applies generated migrations to wrangler's local D1 instead: +// The d1-http driver targets the *remote* D1 database; only db:studio +// needs the credentials. Schema changes go through generated migrations +// that wrangler applies (never `drizzle-kit push`, which skips +// d1_migrations): // bun run db:generate && bun run db:migrate export default defineConfig({ out: './drizzle', diff --git a/package.json b/package.json index d7566f9..ea5b47d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "db:generate": "drizzle-kit generate", "db:migrate": "wrangler d1 migrations apply DB --local", "db:migrate:remote": "wrangler d1 migrations apply DB --remote", - "db:push": "drizzle-kit push", "db:studio": "drizzle-kit studio", "openapi:emit": "bun scripts/emit-openapi.ts", "generate:client": "bun run openapi:emit && cd packages/client && bunx openapi-ts",