Drizzle misses some schema files

Hey, I just noticed that the command bun run drizzle-kit generate and drizzle-kit push does not generate migrations or pushes some of the tables I have defined in my schema files. Only three tables get applied in the database no matter how often I retry the commands. My config looks like this:
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
schema: "./src/models/*",
dialect: 'sqlite',
driver: 'turso',
dbCredentials: {
url: 'redacted',
authToken: 'redacted'
},
verbose: true,
strict: true,
})
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
schema: "./src/models/*",
dialect: 'sqlite',
driver: 'turso',
dbCredentials: {
url: 'redacted',
authToken: 'redacted'
},
verbose: true,
strict: true,
})
And my models folder is attached as an image, as well as what the generated tables look like
No description
No description
1 Reply
Zetax
ZetaxOP4mo ago
SOLUTION FOUND: I did not know drizzle only generates migrations for "exported" schemas lol
Want results from more Discord servers?
Add your server