try to push : schema "XXX" does not exist
When I try to add a custom schema, the push command dont works :
I have this error :
any idea ?
Solution:Jump to solution
okay ive found. I had to add
schemaFilter: ['public', 'quiz'],
in the drizzle.config.ts
file2 Replies
Solution
okay ive found. I had to add
schemaFilter: ['public', 'quiz'],
in the drizzle.config.ts
fileI may be wrong but I think push doesn't create new schema, only uses it.
You either have to create it separately or maybe use
drizzle-kit generate
and then migrate (provided you see the CREATE SCHEMA
line in generated migrations).
Oops didn't see your response ahaha