Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Add validations and extra warnings to deploy when updating relations #2334

Merged
merged 14 commits into from
May 6, 2018

Conversation

do4gr
Copy link
Member

@do4gr do4gr commented May 3, 2018

Do not strictly require a relation directive to appear twice anymore. https://github.com/graphcool/prisma/issues/1569 ,
Add a validation when adding an omitted back relation later. (If it's a to one relation the omitted side can only be in one relation in existing data.)
Add an error if we can not determine which relation operations to take after a schema change. Add a hint to provide relation directives or advance in steps. https://github.com/graphcool/prisma/issues/1836
Added tests for a case described here that was already fixed. https://github.com/graphcool/prisma/issues/1944

Fixes https://github.com/graphcool/prisma/issues/1569 , https://github.com/graphcool/prisma/issues/1836

@prisma prisma deleted a comment May 3, 2018
@prisma prisma deleted a comment May 3, 2018
@prisma prisma deleted a comment May 3, 2018
@prisma prisma deleted a comment May 3, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
add error when adding singular optional back relation field but there are already multiple occurrences in existing data
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 4, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@prisma prisma deleted a comment May 5, 2018
@do4gr do4gr changed the title [WIP] Updating relations Add validations and extra warnings to deploy when updating relations May 5, 2018
@sorenbs sorenbs merged commit 762da0c into master May 6, 2018
@emmenko
Copy link

emmenko commented May 6, 2018

Thanks guys!! Looking forward to try this out 😍

Do you have an ETA on when this is going to be released?

@sorenbs
Copy link
Member

sorenbs commented May 6, 2018

@emmenko We have a bi-weekly release cycle for Prisma. The next release is scheduled for Tuesday next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants