返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Backend Migrations

创建和管理具有可逆更改、清晰命名和安全部署实践的数据库模式迁移。在编写数据库迁移文件、修改数据库模式、创建迁移脚本或管理数据库版本控制时使用此技能。当处理数据库迁移目录中的迁移文件,定义模式更改(CREATE TABLE, ALTER TABLE, DROP TABLE)的文件,迁移回滚/降级方法,数据库索引创建脚本,种子数据或数据迁移文件,ORM迁移配置(Prisma, Drizzle, TypeORM),或者处理数据库版本化和迁移历史记录的文件时。

person作者: jakexiaohubgithub

Backend Migrations

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend migrations.

When to use this skill

  • When creating new database migration files or scripts
  • When modifying existing database schemas (adding/removing/altering tables or columns)
  • When writing migration rollback methods or down migrations for safe reversals
  • When creating database indexes, constraints, or foreign keys
  • When implementing data migrations or transformations alongside schema changes
  • When working with ORM migration tools (Prisma, Drizzle, TypeORM, Sequelize, etc.)
  • When planning zero-downtime deployments that require backwards-compatible schema changes
  • When managing database migration version history or migration ordering
  • When creating seed data files or initial database setup scripts
  • When documenting migration dependencies or complex schema changes

Instructions

For details, refer to the information provided in this file: backend migrations