Skip to content

Commit

Permalink
feat(sanitize-hash): Add note about unique in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn de Voogd committed Jun 25, 2024
1 parent 1e8f968 commit 98b6ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ You can also combine the sanitize options:
/// @encryption:hash(email)?sanitize=lowercase&sanitize=trim&sanitize=trim&sanitize=diacritics
```

> Be aware: Using the sanitize hash feature in combination with `unique` could cause conflicts. Example: Users with the name `François` and `francois` result in the same hash which could result in a database conflict.
## Migrations

Adding encryption to an existing field is a transparent operation: Prisma will
Expand Down

0 comments on commit 98b6ce2

Please sign in to comment.