Hello everyone 🖖,
I am upgrading from prisma 1.27 to 1.34 so going to v1.1 syntax.
I follow prisma guide on how to do that. Prisma introspect does not work, So I update manually prisma files.
First try without data: prisma deploy work and all of my test passed.
But now I need to upgrade prisma with data. I put table relation everywhere in order to not loose any data. (by default prisma put inline)
Prisma deploy does not show any warning about switching relation but a global one.
"Warnings:
Global
! You are migrating from the old datamodel syntax to the new one. Make sure that you understand the listed changes because the semantics are different now. Then perform the deployment with the
--force
flag.
Ignoring warnings because you provided --force."
I do not know what I miss. I try with --force and as expected I loose data. Indeed it updated id column on all my table.
"foo (Type)
~ Updated field `id`"
MetadataDefinitionToFooMetadata (Relation)
- The id column
id
in link table
_MetadataDefinitionToFooMetadata
has been removed.
It was a Prisma legacy column that is not in use anymore."
Did anyone face this issue and success to solve it ?
Thank you in advance and for reading my paving stone 🙂