A safe schema change checker for Prisma that catches unsafe database migrations by diffing current and draft schema versions. Current version is 0.0.8, released sporadically. It prevents accidental deletion of models or fields without prior `@@ignore` or `@ignore` annotations. Unlike prisma-lint (single-schema analysis), prisma-safety requires both old and new schemas to compute diffs. Integrates as a CLI tool or GitHub Action step.
npm install prisma-safetyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches main branch, checks if schema changed, then runs prisma-safety diff against main.
Ensure the base SHA is available (e.g., git fetch origin <branch>).
Use `--schema` explicitly.
Manually review type changes or use prisma-lint for additional checks.
Add `@ignore` to the field in the current schema, then remove it in a subsequent migration.
Specify schema location with `--schema` option.