47ng / 47ng/prisma-field-encryption
Erroneous `rotation migrations are disabled` warning
- Vorherrschende Sprache
- TypeScript
- Sterne
- 306
- Forks
- 40
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Comment
There is an id/unique on the model, it's not just a single field. I can't see how to disable the warning or how to resolve it.
## Error Text
```text
[prisma-field-encryption] Warning: could not find a field to use to iterate over rows in model RetailerDistributor.
Automatic encryption/decryption/key rotation migrations are disabled for this model.
Read more: https://github.com/47ng/prisma-field-encryption#migrations
```
## Relevant Schema
```text
model RetailerDistributor {
retailerId String
distributorId String
isActive Boolean @default(true)
authJsonString String? /// @encrypted
retailer Retailer @relation(fields: [retailerId], references: [id])
distributor Distributor @relation(fields: [distributorId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@id([retailerId, distributorId])
}
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.