AGENT SKILL

sql-migrations

Write safe database schema migrations - reversible steps, online index builds, and backfills in batches.

适用职业数据分析师
使用场景后端与接口
License 许可
Apache-2.0
所属仓库
stigmer/stigmer
最近更新
2026-11-11
Stars
★ 9
Forks
6

01 前言 Front Matter

name
sql-migrations
description
Write safe database schema migrations - reversible steps, online index builds, and backfills in batches.

03 SKILL.md 正文

SQL migrations

  1. Every migration has an up and a down step.
  2. Add columns as nullable first; backfill in batches; then add constraints.
  3. Build indexes concurrently on large tables.
  4. Never rename or drop a column that running code still reads.

04 同仓库更多 Skills