Daan Helsloot
08/02/2021, 8:15 AMprisma migrate dev --name init
command which gives me the ouput found in the attachment. Is there a way to use the new functionality without wiping the entire database? Many thanks!Daan Helsloot
08/02/2021, 8:17 AMDaan Helsloot
08/02/2021, 8:54 AMRyan
08/02/2021, 10:27 AMprisma migrate dev
on the Dev environment. This will only have to be done once and will delete all the data which is why this needs to be done only on Dev.
2. Baseline your production environment. As youโre moving to the new Migrate, youโll just have a single migration for now. This you would need to baseline with your production environment and no data is lost here. Only the migration is applied.Daan Helsloot
08/02/2021, 11:27 AMDaan Helsloot
08/02/2021, 2:40 PM"'"/Users/daan/haas/api/node_modules/@prisma/client/index".Prisma' has no exported member named 'DialogueCreateInput'. Did you mean 'DialogueWhereInput'?ts(2724)"
Daan Helsloot
08/02/2021, 2:41 PMRyan
08/02/2021, 2:42 PMPrisma
namespace:
import { Prisma } from '@prisma/client'
type T = Prisma.DialogueCreateInput
Daan Helsloot
08/02/2021, 2:44 PMDaan Helsloot
08/02/2021, 2:45 PMDaan Helsloot
08/02/2021, 3:03 PMDaan Helsloot
08/02/2021, 3:12 PMDaan Helsloot
08/02/2021, 3:23 PMDaan Helsloot
08/02/2021, 3:27 PMDaan Helsloot
08/02/2021, 3:29 PMexport type DialogueWhereUniqueInput = {
id?: string
postLeafNodeId?: string
Dialogue.slug_customerId_unique?: DialogueDialogue.slug_customerId_uniqueCompoundUniqueInput
}
Daan Helsloot
08/02/2021, 3:46 PM@@unique([slug, customerId], name: "Dialogue.slug_customerId_unique"
)
2. When the prisma client is generated this name is used as a key of one of the type attributes causing all sorts of problemsRyan
08/02/2021, 3:59 PM@@unique
name and check?Daan Helsloot
08/02/2021, 3:59 PMDaan Helsloot
08/02/2021, 4:00 PMDaan Helsloot
08/02/2021, 4:01 PM