Primary key in model using a missing column
See original GitHub issueHi 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:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 🚀