prisma-add-column-existing-db
CommunitySafely add Prisma columns to production databases
System Documentation
What problem does it solve?
This Skill solves the critical issue of adding new fields to existing Prisma models when the database is in active production, where running standard Prisma migration commands like prisma migrate dev would either fail due to existing data constraints or cause irreversible data loss from database resets.
Core Features & Use Cases
- Non-Destructive Production Workflow: Provides a safe, step-by-step process to add new columns without resetting the production database or disrupting live services.
- Relation Field Validation Handling: Automatically addresses Prisma's requirement for opposite relation definitions when adding relational fields to avoid schema validation errors.
- Use Case: For example, a backend team running a production PostgreSQL database for a project management tool can use this Skill to safely add a new project relation field to the existing Attachment model without losing any existing attachment data or causing downtime.
Quick Start
Use the prisma-add-column-existing-db skill to safely add a new optional project relation field to the existing Attachment model in your production PostgreSQL database without resetting the database or losing existing attachment data.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: prisma-add-column-existing-db Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#prisma-add-column-existing-db Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.