smithery.ai

prisma-migrate

Prisma 스키마 변경 후 수동 SQL 마이그레이?

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,288 B
  • docs SUMMARY.md 65 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

/prisma-migrate

Prisma 스키마 변경 후 수동 SQL 마이그레이션 파일을 생성하고 DB에 적용합니다.

실행 단계

  1. git diff apps/api/prisma/schema.prisma로 스키마 변경사항 확인
  2. 변경사항 분석 후 SQL 마이그레이션 파일 작성

- 경로: apps/api/prisma/migrations/YYYYMMDD설명.sql - 날짜는 오늘 날짜 사용 - 설명은 snakecase (예: addstudentsnapshot)

  1. SQL 파일 형식:

```sql -- Migration: 변경 설명 -- Date: YYYY-MM-DD -- Feature: 관련 기능명 -- Description: 상세 설명

-- Up Migration ALTER TABLE ...;

-- Down Migration (rollback) -- ALTER TABLE ...;

-- Notes: -- - 참고사항 ```

  1. 사용자 확인 후 pnpm --filter @school/api prisma db push로 스키마 적용
  2. pnpm --filter @school/api prisma generate로 클라이언트 재생성

주의사항

  • 프로덕션 DB에 직접 적용하지 않음
  • 데이터 손실 가능성 있는 변경(컬럼 삭제, 타입 변경 등)은 사용자에게 경고
  • Down Migration은 주석으로 작성 (롤백 참고용)
  • prisma db push는 개발 DB에만 사용