Zephury
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
everything seems to work. just no types. I haven't tested extensively, but I haven't had any actual problems. If I understood correctly, drizzle-kit studio needs to have the relations, as you see in userRelations, from my example in order to work though? I was not able to use drizzle-kit studio unless I provided the userRelations. I believe that is the expected behavior though?
14 replies
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
https://github.com/drizzle-team/drizzle-orm/issues/1502
this is exactly the issue I have, for reference
14 replies
DTDrizzle Team
•Created by zeekrey on 11/24/2023 in #help
Is there a --force flag for drizzle-kit push?
yeah... getting really sick of having to wipe my entire database every time I want a new migration during development. Makes me very apprehensive to use in prod.
In my case, I had an id field that was a
bigint
, which used to be a generated id; it's for languages, so I decided to switch the id field to varchar and use iso language abbreviations instead, but I can't push, nor complete a migration with it:
checked every file and did a file search to see if anything still tried implementing it as a foreign key, but no, all foreign key references are switched to varchar
as well. There is no more bigint
related to language
in my application.2 replies
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
thank you. I will create one as soon as I'm able to find the time
14 replies
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
14 replies
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
So it seems its just something I’ll have to wait and hope for an eventual fix with?
I’m not sure exactly what you mean by the 3rd parameter. Could you give me a rough example? I suppose it did happen around the time I was messing with relations and inferred relations
14 replies
DTDrizzle Team
•Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
I tried deleting all caches, restarting vs code, restarting ts server and still, no luck 🥲
14 replies