47ng / prisma-field-encryption

Transparent field-level encryption at rest for Prisma
https://github.com/franky47/prisma-field-encryption-sandbox
MIT License
223 stars 27 forks source link

feat: Add check to disable migration warning for specific models #104

Open renatocron opened 3 months ago

renatocron commented 3 months ago

Introduced a new check to disable migration warnings for specific models based on the presence of the DISABLE_MIGRATION_WARNING environment variable. This check enhances flexibility in managing migration warnings, allowing for more targeted handling of warnings according to specific model requirements.

franky47 commented 3 months ago

Thanks for the PR!

This is making me realise that this warning could just be omitted if the migrations generator isn't used, and turned into an error log if it is. Now how this could be determined is another story.