Moray
Explore posts from serversPPrisma
•Created by Moray on 8/23/2024 in #help-and-questions
Introspecting an existing database doesn't handle join tables correctly
For info, this is what the existing
_RoleToTenantUser
table looks like:
And this is what Prisma generated for this table in prisma/migrations/0_init/migration.sql
:
3 replies
PPrisma
•Created by Moray on 8/16/2024 in #help-and-questions
Upgrading from Prisma 1
Going to have to apply a few preliminary database changes so that it understands which relationships are 1-many and which are many-many
7 replies
PPrisma
•Created by Moray on 8/16/2024 in #help-and-questions
Upgrading from Prisma 1
Yeah that's basically what I'm doing. The new DB introspection only looks at the database state rather than the GraphQL files that prisma1 uses so I'm going to have to spend a fair bit of time fixing that before I get on to updating literally thousands of queries in our application
7 replies
PPrisma
•Created by Moray on 8/16/2024 in #help-and-questions
Upgrading from Prisma 1
I think this is going to be less of an upgrade process and more of a "start from scratch"
7 replies
PPrisma
•Created by Moray on 8/16/2024 in #help-and-questions
Upgrading from Prisma 1
After a bit of fiddling, it seems that we have to jump straight from v1 to 4.10 at a minimum. Going to try going to 4.16.2 and see what happens...
7 replies