본문으로 건너뛰기
cccskills
무료GitHub에 공개

database-migrations

Change persistent models and SQLite/PostgreSQL migrations without breaking existing servers.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구PostgreSQL
설치 방법 보기

포함된 파일(3)

  • SKILL.md2.2 KB
  • agents/openai.yaml259 B
  • references/migration-workflow.md322 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Persistence is server-only compatibility work.

Workflow

  1. Find the owning database project and both provider conventions.
  2. Update the model deliberately.
  3. Consider existing rows, nullability, defaults, indexes, uniqueness, and backfills.
  4. Generate matching SQLite and PostgreSQL migrations.
  5. Review generated operations and snapshots.
  6. Test upgrading an existing database, not only creating a new one.
  7. Keep database I/O off frequent gameplay paths.

Do not use database entities as gameplay components or shared transport types. Avoid destructive schema changes unless data loss is explicitly accepted.

Report when migrations were generated but not exercised against both providers.

Provider versions in effect

Central package versions live in Directory.Packages.props; do not assume an older major version from prior work. Both providers are in use, and their majors change behavior independently.

  • EF Core and Microsoft.EntityFrameworkCore.Sqlite.Core are on 10.x, Npgsql.EntityFrameworkCore.PostgreSQL on its own matching major. Confirm the current numbers before writing provider-specific code.
  • EF Core 10 changes several defaults that can silently alter a migration: parameterized collections now use multiple scalar parameters instead of a JSON array, complex-type column names are uniquified, nested complex properties use a full path in the column name, and SQL parameter names are simplified.
  • EF Core 10 also changes ExecuteUpdateAsync to accept a regular lambda, which breaks hand-built expression trees.
  • Microsoft.Data.Sqlite 10 assumes UTC: GetDateTimeOffset on a value without an offset treats it as UTC, GetDateTime with an offset returns UTC, and writing a DateTimeOffset into a REAL column converts to UTC first.
  • EF tools now require --framework for multi-targeted projects.

Because existing servers keep their old schema, a migration that is correct for a fresh database can still fail on upgrade. Review the generated Up/Down operations and the snapshot, and confirm SQLite and PostgreSQL outputs separately.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

atmos

무료

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

audio

무료

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 20일 업데이트

ArcaneSS14의 스킬 모두 보기

이 스킬의 문제 신고