drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.61k stars 650 forks source link

No detected schema when use bun --bun drizzle-kit push... #3438

Open QuangPhamvt opened 7 months ago

QuangPhamvt commented 7 months ago

File drizzle.config.ts

import { defineConfig } from "drizzle-kit";
export default defineConfig({
  schema: "src/database/schemas/index.ts",
  out: "drizzle",
  driver: "mysql2",
  dbCredentials: {
    host: "127.0.0.1",
    port: 3306,
    user: "root",
    password: "12345678",
    database: "TEST",
  },
  verbose: true,
  strict: true,
})

File package.json

{
  "scripts": {
       "db:push": "bunx --bun drizzle-kit push:mysql --config drizzle.config.ts"
  }
}

Bug [i] No changes detected

samtvn commented 5 months ago

I have the same problem, if anyone has a solution it would be greatly appreciated. I had to install node as a workaround.