Drizzle kit push and migrate don't match typescript schema
Hello, I'm having issues with both push and migrate commands with drizzle kit generating incorrect SQL based on my typescipt schema. Any help would be much appreciated!
drizzle.config.ts
src/db/schema.ts
resulting SQL
4 Replies
the weird part is that I can update a column type like number from integer to number and it works fine
I've already tried dropping my table, creating a new docker container on a new volume, and deleting all migrations and none of that worked
What exactly is wrong? The column names? I see that certain keys don't match the assigned alias (like
folderName
as key but file_name
as alias)
(Also, hi entro!)
Or are you talking about the FK not being generated?I just realized that.... thanks for catching my extremely dumb mistake tho!
hey!!
It do be like that. Glad you got it solved though