-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report hasn't been filed before.
- I have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm
are you using?
0.44.6
What version of drizzle-kit
are you using?
0.31.5
Other packages
No response
Describe the Bug
Command executed
npx drizzle-kit pull --config "*path-to-config*"
Output
Reading config file '*path-to-config*'
Pulling from ['public'] list of schemas
[✓] 112 tables fetched
[✓] 642 columns fetched
[⣻] 130 indexes fetching
[✓] 266 foreign keys fetched
[⣻] 0 policies fetching
[⣻] 0 check constraints fetching
[⣻] 2 views fetching
TypeError: Cannot read properties of undefined (reading 'columns')
at fromDatabase (/*path-to-project*/node_modules/drizzle-kit/bin.cjs:18366:43)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
I have two configuration files — one for the better-auth
database and another for the app database.
The better-auth
database pulls successfully, but the app database throws the above error.
Configuration file
import { defineConfig } from "drizzle-kit";
export default defineConfig({
out: "./drizzle/app",
dialect: "mysql",
dbCredentials: {
url: process.env.MYVET_APP_DB!,
},
introspect: {
casing: "preserve",
},
});
- Node version: v23.10.0
- Database type: MySQL
- OS: MacOS 26
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working