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.

Primary key in model using a missing column

See original GitHub issue

Hi Prisma Team! Prisma Migrate just crashed.

Command

db pull

Versions

Name Version
Platform darwin-arm64
Node v16.13.1
Prisma CLI 4.1.0
Engine 8d8414deb360336e4698a65aa45a1fbaf1ce13d8

Error

Error: [libs/datamodel/connectors/dml/src/model.rs:494:29] Hi there! We've been seeing this error in our error reporting backend, but cannot reproduce it in our own tests. The problem is that we have a primary key in the model `CUSTOMER_BRAND_LINK` that uses the column `DATE_UPDATED` which we for some reason don't have in our internal representation. If you see this, could you please file an issue to https://github.com/prisma/prisma so we can discuss about fixing this. -- Your friendly prisma developers. 

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidJSykescommented, Aug 17, 2022

I am looking forward to trying out the new version! I’m sorry I couldn’t offer more info to help with this. I had a major family emergency and had to drop everything.

0reactions
janpiocommented, Aug 20, 2022

4.2.0 is out already, so let us know if you had the time to play with it and this indeed helps and fixes the problem 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help with missing primary key - SQL - Codecademy Forums
So my question is: I'm thinking of using the code as primary key, ... code as another column but I don't know if...
Read more >
sql server - Recommendations for missing primary key
I'm thinking about creating a database using an excel file from a hospital equipment inventory a while ago. the main there is a...
Read more >
Finding primary keys and missing primary keys in SQL Server
In this tip we look at scripts to find all SQL Server primary keys in a database as well as tables that are...
Read more >
Primary Key Constraint missing on some models #7128 - GitHub
The following models/tables have a UUID id column but are missing a Unique Index and Primary Key Constraint on the column:.
Read more >
Add or change a table's primary key in Access
To set a table's primary key, open the table in Design view. Select the field (or fields) that you want to use, and...
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