pushSchema from drizzle-kit/api is not working if pgSchema specified in the schema.ts file
Hey, I'm trying to apply migration file to a custom schema using this approach (https://orm.drizzle.team/docs/schemas). If I'll specify
pgSchema
in schema.ts file the pushSchema still tries to apply to the default public
schema ignoring the pgSchema declaration:
my schema.ts:
my db.service.ts:
This resulst in a conflict because pushSchema
tries to apply the schema.ts file to the public
schema instead of pgSchema
specified in the file. Am I doing something wrong?0 Replies