question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tomhoulecommented, Jan 22, 2020

I have a fix - PR: https://github.com/prisma/prisma-engine/pull/405

Will keep updating this issue until the fix is released.

2reactions
AlexanderProdcommented, 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
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration troubleshooting in production - Prisma
The following guide describes issues relating to Prisma Migrate that can occur in production, and how to resolve them. This guide does not...
Read more >
Migration with transaction fails without good error message
Bug description According to this blog post Prisma supports transactions for migrations when using the postgres database.
Read more >
Error when migrating models to database Prisma
I tried Introspect. But, my DB currently has no tables and that threw an error. I tried npx prisma migrate save -experimental b/c...
Read more >
prisma-rays - npm
In prisma migrate , attempting to create multiple migrations without applying any of them is not supported. if you attempt to create another ......
Read more >
Prisma - Supabase
By default, Prisma migrations will try to drop the postgres database, which can lead to conflicts with Supabase databases. For this scenario, use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found