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

Error in migration engine - no current timer when using prisma2 migrate #1395

Closed
AlexanderProd opened this issue Jan 21, 2020 · 14 comments
Closed
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: binary
Milestone

Comments

@AlexanderProd
Copy link

AlexanderProd commented Jan 21, 2020

I'm using the latest release 2.0.0-preview020 and I'm getting the following error when running prisma2 migrate save --experimental .

Error in migration engine.
Reason: [src/libcore/option.rs:1185:5] no current timer

Report id 1254

@tarazena
Copy link

Same in here.

@andresggarcia
Copy link

Having exact same issue just after upgrading to 2.0.0-preview020. Previous version with lift command worked just fine.

@naveen-bharathi
Copy link

naveen-bharathi commented Jan 21, 2020

same here. Is there any temporary solution or workaround?

I need to migrate to a new data model. But just don't know how to do it with this error

@andresggarcia
Copy link

As a workaround, you could use the previous API for migrations as follows:
npx prisma2@2.0.0-preview019 lift save
npx prisma2@2.0.0-preview019 lift up

@tomhoule
Copy link
Contributor

I can't reproduce the issue - what operating system and what database are you using? It would also be helpful to have a sample schema where this happens.

@AlexanderProd
Copy link
Author

AlexanderProd commented Jan 22, 2020

@tomhoule I'm on macOS and using a MySQL database.

this is the schema I'm using.

datasource mysql {
  url      = "mysql://****:*****@*****/*****"
  provider = "mysql"
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id        String   @id @default(cuid())
  createdAt DateTime @default(now())
  email     String   @unique
  name      String?
  phone     String?
  role      Role     @default(USER)
  posts     Post[]
}

model Post {
  id         String     @id @default(cuid())
  createdAt  DateTime   @default(now())
  updatedAt  DateTime   @updatedAt
  author     User
  title      String
  categories Category[]
  published  Boolean    @default(false)
}

model Category {
  id    String  @id @default(cuid())
  name  String
}

enum Role {
  USER
  ADMIN
}

@tomhoule
Copy link
Contributor

Thanks a lot :) still investigating

@tomhoule
Copy link
Contributor

Ok I managed to reproduce the crash, will post an update here as soon as it's fixed.

@tomhoule tomhoule self-assigned this Jan 22, 2020
@janpio janpio added this to the Preview 21 milestone Jan 22, 2020
@tomhoule
Copy link
Contributor

I have a fix - PR: prisma/prisma-engines#405

Will keep updating this issue until the fix is released.

@tomhoule
Copy link
Contributor

preview 20.1 is being released right now - I will close this issue, thanks for reporting the bug and please continue giving feedback when things don't work :)

@yovanoc
Copy link

yovanoc commented Jan 22, 2020

image

The new preview fix this issue but let us with a new one ^^

@PhilippSpo
Copy link

@yovanoc Yup I have the same issue.

@AlexanderProd
Copy link
Author

Same here.

@AlexanderProd
Copy link
Author

opened #1419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: binary
Projects
None yet
Development

No branches or pull requests

9 participants