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 when deploying migration

See original GitHub issue

I am receiving the following error when trying to run a migration on my database: LiftEngine:stderr thread 'tokio-runtime-worker-1' panicked at 'old Field for MigrationStep not found', src/libcore/option.rs:1034:5 +0ms

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mckernanincommented, Aug 28, 2019

Here’s my datamodel, locally I’m using a docker container of postgres, in production I’m using managed postgres from Digital Ocean. Postgres 11 on both.

  provider = "postgresql"
  url      = env("POSTGRESQL_URL")
}

generator photon {
  provider = "photonjs"
}

model User {
  id            String      @default(cuid()) @id @unique
  ownerHash     String      @unique
  characterName String      @unique
  characters    Character[]
  calendarToken String?     @unique
}

model Character {
  id            String @default(cuid()) @id @unique
  ownerHash     String @unique
  characterId   Int    @unique
  characterName String @unique
  user          User
  token         Token
}

model Token {
  id            String    @default(cuid()) @id @unique
  character     Character
  refresh_token String
  access_token  String
  expires_at    String?
  expires_in    Int
  token_type    String
}

Here’s a pastebin of the log when I run DEBUG=* prisma2 lift up: https://pastebin.com/fUrw2yPg

1reaction
mckernanincommented, Sep 30, 2019

No problem, was a few versions back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: *** Deployment Failed *** "Migrations" -- invalid sender ...
Issue. Getting this - Error: Deployment Failed "Migrations" -- invalid sender. when trying to deploy to Ropsten Network. Steps to Reproduce
Read more >
Error when deploying the Launch Entry configurations in ... - IBM
The following deployment error is thrown whenever there is a Launch Entry (MAXLAUNCHENTRY) associated with one or more signature option flags ( ...
Read more >
Common errors and known issues when migration to Azure ...
Overview of common errors when migrating from Cloud Services (classic) to Cloud Service (extended support)
Read more >
blockchain - UNABLE TO MIGRATE (Error: Deployment Failed)
It looks like this issue: https://github.com/ethereum/go-ethereum/issues/19424. Because you were sending LES/1 version of transaction ...
Read more >
deployment error when migrating from one environment to other
Trying to migrate code using DG and running into issues with source and target shortcut definitions. (1) I created a dynamic deployment group...
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