Foreign Key Reference to auth Schema Not Generated in Code
I'm having an issue with my Drizzle-ORM code where the foreign key reference to the 'auth' schema is not being generated as expected. The issue lies in this block of code:
The output SQL generated is:
The problem is, it should reference the auth schema that has a users table, not just the users table. The 'auth' schema is not reflected in the ALTER TABLE SQL statement generated.
I am unsure if this is a bug in the Drizzle-ORM package or if there is something wrong with my code. Please advise.
2 Replies
what version of drizzle-kit are you using?
I was using drizzle-orm: 0.27.2 and drizzle-kit: 0.19.4