No schema changes, nothing to migrate 😴

I'm trying to run a very basic setup and drizzle-kit doesn't pick up on the schema. I've been... fighting this for a bit. Basically out of ideas.

// ./db/schema.ts
import { integer, sqliteTable } from "drizzle-orm/sqlite-core";

export const test = sqliteTable("test", {
  id: integer("id").primaryKey(),
});


I run the command npx drizzle-kit generate --dialect=postgresql --schema=./db/schema.ts
I get the output:
0 tables


No schema changes, nothing to migrate 😴


Not sure what I should be doing different. I've also tried this with config files, with files in the root, but I keep getting the same thing.

  "devDependencies": {
    "@types/pg": "^8.11.10",
    "dotenv": "^16.4.7",
    "drizzle-kit": "^0.29.1",
    "tsx": "^4.19.2",
    "typescript": "^5.6.3"
  },
  "dependencies": {
    "drizzle-orm": "^0.37.0",
    "pg": "^8.13.1",
  }
Was this page helpful?