prisma / prisma1

💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
https://v1.prisma.io/docs/
Apache License 2.0
16.55k stars 863 forks source link

Stuck on Applying Changes Using Enums #3198

Closed parakeetberlin closed 5 years ago

parakeetberlin commented 6 years ago

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):

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 commented 6 years ago

added to #2018

mavilein commented 5 years ago

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