D1: `drizzle-kit push` says changes applied but database unchanged

Here are the logs:

~/c/u/p/pin (main)> drizzle-kit push
drizzle-kit: v0.23.0
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/tom/code/unravel/packages/pin/drizzle.config.ts'
[✓] Pulling schema from database...
[✓] Changes applied


here's my config:

import { defineConfig } from "drizzle-kit";
import { config } from "dotenv";

const projectDir = process.cwd();
config({
  path: `${projectDir}/.env`,
});

export default defineConfig({
  schema: "./src/schema.ts",
  out: "./migrations",
  dialect: "sqlite",
  driver: "d1-http",
  dbCredentials: {
    accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
    databaseId: process.env.CLOUDFLARE_DATABASE_ID!,
    token: process.env.CLOUDFLARE_D1_TOKEN!,
  },
});


The env vars are all set (when they're not set I get an auth error). it says changes applied, but the they're actually not. this is on a fresh and empty database
Was this page helpful?