Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename pinnedPlatform to pinnedBinaryTarget #2644

Closed
divyenduz opened this issue Jun 2, 2020 · 2 comments · Fixed by #2661
Closed

Rename pinnedPlatform to pinnedBinaryTarget #2644

divyenduz opened this issue Jun 2, 2020 · 2 comments · Fixed by #2661
Assignees
Labels
kind/improvement An improvement to existing feature and code. tech/typescript Issue for tech TypeScript. topic: schema
Milestone

Comments

@divyenduz
Copy link
Contributor

pinnedPlatform is a field on the generator block in Prisma schema file. We made a decision to rename it to pinnedBinaryTarget.

Decision: https://prisma-company.slack.com/archives/CEYCG2MCN/p1566475959421300
Spec PR: prisma/specs#474

@divyenduz divyenduz added kind/improvement An improvement to existing feature and code. topic: schema process/candidate labels Jun 2, 2020
@Jolg42 Jolg42 self-assigned this Jun 4, 2020
@Jolg42 Jolg42 added this to the Beta 9 milestone Jun 4, 2020
@Jolg42 Jolg42 added tech/typescript Issue for tech TypeScript. and removed process/candidate labels Jun 4, 2020
@Jolg42
Copy link
Member

Jolg42 commented Jun 4, 2020

We have this error message for info

`The \`pinnedPlatform\` field on the generator definition is deprecated.

Should we have the same for pinnedBinaryTarget?

@divyenduz
Copy link
Contributor Author

divyenduz commented Jun 4, 2020

Yes, any instance of the following should be renamed

platforms -> binaryTargets
pinnedPlatform -> pinnedBinaryTarget

Update: we discussed this further in chat and this message is because pinnedPlatform was deprecated because of the rename. This message can stay as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement An improvement to existing feature and code. tech/typescript Issue for tech TypeScript. topic: schema
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants