Open jakeisnt opened 1 month ago
Same here. Suddenly...
I've been using mysql and the following change to the node_modules/drizzle-kit/bin.cjs
has helped overcome this issue:
On line 14581 I replaced:
database: objectType({
prefix: prefix.optional().default("index")
}).optional()
with
database: stringType().min(1),
I'm using mysql dialect with TiDB.
@tirth0 This worked as a temp fix. Thanks so much. Still needs to be fixed though.
I downgrade to v0.22.8
and everything works fine 👌 Hope a fix will arrive soon 🙏
Same for my project as well.
Docs everywhere for Drizzle suggest that
database
config field should be a string, like so:https://orm.drizzle.team/docs/get-started-postgresql
but upon executing
npx drizzle-kit introspect
, I get this error (Node.js 20):The correct type of
database
according to the docs - and the code itself - is a string, but the Zod linting seems to prefer an object?