-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Validation error when shadowDatabaseUrl is identical to url (or directUrl) #16628
Copy link
Copy link
Closed
prisma/prisma-engines
#4831Labels
good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!topic: errortopic: prisma migrate devCLI: prisma migrate devCLI: prisma migrate devtopic: prisma validateCLI: prisma validateCLI: prisma validatetopic: schema validationtopic: shadow database
Milestone
Description
prisma/web#4188 raised a valid point that it is bad to use the same database for shadowDatabaseUrl as you are using for url - your database will be overwritten and you will lose data. The PR adds a warning into the docs, but we can actually do one better and just fail validation of the schema in this case.
Internal discussion: https://prisma-company.slack.com/archives/CGMCB82N8/p1670232135999259
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!topic: errortopic: prisma migrate devCLI: prisma migrate devCLI: prisma migrate devtopic: prisma validateCLI: prisma validateCLI: prisma validatetopic: schema validationtopic: shadow database