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

Stuck on Applying Changes Using Enums #3198

Closed
parakeetberlin opened this issue Sep 27, 2018 · 2 comments
Closed

Stuck on Applying Changes Using Enums #3198

parakeetberlin opened this issue Sep 27, 2018 · 2 comments

Comments

@parakeetberlin
Copy link

Describe the bug
Stuck on "Applying Changes"

To Reproduce
Steps to reproduce the behavior:

  1. Include in your datamodel.prisma and schema.graphl a type that takes consist of an ID and String like so:

datamodel.prisma

type Permission {
    id: ID! @unique
    title: String!
}

schema.graphql

type Permission {
    id: ID!
    title: String!
}
  1. Create some entries via Mutations in the GraphQL Playground
  2. Change the type to use an enum instead of a string for the title like so:

datamodel.prisma

type Permission {
    id: ID! @unique
    title: PermissionEnum!
}

schema.graphql

type Permission {
    id: ID!
    title: PermissionEnum!
}
  1. Run prisma deploy --force

Expected behavior
Changes should happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: OS X High Sierra 10.13.4
  • prisma CLI: prisma/1.17.1 (darwin-x64) node-v10.10.0
  • Prisma Server: 1.16.2
  • graphql-yoga

Additional context
When adding a second attribute that also uses an enum then it doesn't stock on "Applying Changes"...
like so:

datamodel.prisma

type Permission {
    id: ID! @unique
    title: PermissionEnum!
    test: PermissionEnum
}

schema.graphql

type Permission {
    id: ID!
    title: PermissionEnum!
    test: PermissionEnum
}
@marktani
Copy link
Contributor

added to #2018

mavilein added a commit that referenced this issue Oct 15, 2018
Fix issue #3198: changing the type of a required scalar field must error if there are nodes
@mavilein
Copy link
Contributor

Thanks for reporting the issue and your thorough description! 🙏 This has been fixed in 1.18.1.

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

No branches or pull requests

4 participants