How accurate will be the db introspection ? should we trust it? or should we trust it in most cases but still needed a user correction when pulled?
j
janpio
06/19/2021, 10:34 AM
It should be 100% accurate regarding the features that Prisma (schema) supports.
👍 1
janpio
06/19/2021, 10:34 AM
Optimally after you use the resulting schema to then run
npx prisma db push
on an empty database, the resulting SQL schema will be 100% identical.
👍 1
janpio
06/19/2021, 10:34 AM
Unfortuantely Prisma does not support all database features yet (and probably never will), so if you use one of these that might be missing as it is not represented in the schema.
👍 1
janpio
06/19/2021, 10:34 AM
If other things do not match, that is a bug and worth reporting.
👍 1
i
Ian
06/19/2021, 10:36 AM
got it!
Ian
06/19/2021, 10:37 AM
I will just try to migrate my existing projects from type orm to prisma that's why i have ask this because of the existing schema
👍 1
Ian
06/19/2021, 10:39 AM
another issue im trying to solve is the discriminator/single table inheritance that being handled well in a code first approach like mikro orm i think Ill stick first with class entity of it then just pull the resulting schema