Skip to main content

schema-diff

Compare two schema states and surface the risky changes. Use before applying migrations or after a model change.

来源信息

仓库
Archive228/loopkit
最近来源活动
2026年6月29日 21:52
检测到的 SKILL.md 语言
英语
星标
757
Forks
124

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
schema-diff
description
Compare two schema states and surface the risky changes. Use before applying migrations or after a model change.
when_to_use
reviewing a migration, "what changed in the schema", pre-deploy check
# Schema Diff Diff old vs new schema. Flag by risk: - **Destructive** (high): dropped column/table, narrowed type, new NOT NULL on existing rows, dropped index a query relies on. - **Locking** (high at scale): index without CONCURRENTLY, type change that rewrites the table. - **Safe**: new nullable column, new table, new index CONCURRENTLY. For each destructive change: is data lost? is it reversible? is there a backfill? Output a risk-ranked list and a go/no-go with the safe rollout order.
在 GitHub 查看