본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)9.5k · #12249

convex-migrate

하는 일

이 스킬은 실제 데이터가 있는 Convex 앱의 데이터베이스 구조를 업데이트합니다. 실시간 앱을 망가뜨리지 않고 테이블을 바꿔야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓레코드가 이미 있는 테이블에 필수 필드를 추가하고 싶을 때.
  • ✓실시간 앱에서 필드를 이름 변경, 변경, 분할해야 할 때.
  • ✓필수 규칙을 강화하기 전에 기존 레코드의 빠진 값을 채워야 하는 경우.

스킬 링크

https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-migrate/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-migrate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이미 가진 사용자를 깨뜨리지 않고 users 테이블에 필수 email 필드를 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 새 필드를 선택 사항으로 만들고, 마이그레이션 라이브러리를 설치하며, 기존 레코드를 채우는 단계를 작성해 실행하고, 행 수를 확인한 뒤에야 필드를 필수로 바꿉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

<!-- GENERATED from convex-agents content/capabilities/migrate.json — do not edit by hand. -->

Migrate the schema / data on a live app

Change a deployed schema without breaking existing data: stage the schema change, install @convex-dev/migrations, write a backfill that makes old rows valid, run it, and verify before tightening the validator.

Workflow

  1. Make the new field optional first (so deploy doesn't reject existing rows).
  2. Install @convex-dev/migrations; write a migration that backfills/transforms existing rows.
  3. Run the migration; verify all rows are valid.
  4. Tighten the validator (make the field required) once the backfill is complete.

Rules

  • Never tighten a validator before the backfill completes — it rejects existing rows and breaks the live app.
  • Add new fields as optional first, migrate, then require.
  • Verify row counts before and after.
자주 묻는 질문

왜 바로 필수로 만들지 않나요?

기존 레코드가 새 규칙에 실패해서 실시간 앱이 깨지기 때문입니다.

마이그레이션이 되었는지 에이전트가 어떻게 아나요?

변경 전후의 행 수를 비교하고, 규칙을 강화하기 전에 모든 행이 유효한지 확인합니다.

어떤 라이브러리를 쓰나요?

Convex 마이그레이션 라이브러리를 씁니다. 앱이 계속 작동하는 동안 배치 단위로 변경을 실행합니다.

상세 정보

작성자의 원본 설명

Migrate schema + backfill data on a deployed Convex app using @convex-dev/migrations.

repo: openclaw/clawhub

인기도

GitHub 스타
9.5k
순위
#12249
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬