You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: The check command currently ignores the selected dialect and instead runs for all dialects. Local solve is to comment out the dialects you're not using in the bin.cjs file, see codesnippet below.
This issue has been reported on the drizzle-orm repo aswell under drizzle-orm#2284.
I looked thru the compiled cli code for drizzle-kit and found that the check command currently ignores the dialect you have chosen. I've attached the problematic code and also the code for the up command which does the dialect check correctly.
Seems like just a dev test that was forgotten or that in the past the checkHandlers themselves quit if it wasn't the correct dialect. Should be a rather simple fix just copying what's being done in the up command.
Code snipped from bin.cjs line 113657 - 113682 in drizzle-kit@0.21.2.
drizzle-kit check
throws a zod validation error.The text was updated successfully, but these errors were encountered: