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
21.44k stars 484 forks source link

[BUG]: Schema generation with custom schema not working for mysql #2528

Open bondz opened 1 week ago

bondz commented 1 week ago

What version of drizzle-orm are you using?

0.31.2

What version of drizzle-kit are you using?

0.22.7

Describe the Bug

Set your drizzle dialect to mysql and copy the mysql schema at https://orm.drizzle.team/docs/schemas to your schema folder.

Run drizzle-kit generate

The migration has 0 tables.

Expected behavior

1 table should be generated. The same code works for Postgres.

Environment & setup

macOS Sonoma: 14.5 node: 20.10.0