首页/ AI 技能 / @skilllib/skill-2014279416120029186
Skill站外收录 @skilllib/skill-2014279416120029186

create-migration

根据需求生成数据库迁移文件,用于变更 OWID MySQL 8 数据库的表结构。通过命令创建带时间戳的迁移脚本后,自动定位新生成的文件路径并告知用户,确保后续操作可追溯。

0.0 (0) 148 次安装 原作者 编程导航
收录于 2026-01-22
数据库 AI 技能

Skills.MD

# Create Database Migration Create a new database migration file for the OWID MySQL 8 database. ## Steps 1. Run `yarn createDbMigration db/migration/<NewMigrationName>` where `<NewMigrationName>` is a descriptive name for the migration 2. The generated filename will contain a timestamp prefix, so scan the `db/migration/` directory to find the actual path of the new file 3. Report the new file path to the user ## Naming Guidelines Choose a descriptive name for the migration that clearly indicates what schema change is being made (e.g., `AddUserEmailIndex`, `CreateAuditLogTable`, `RemoveDeprecatedColumns`).

评论 0

还没有评论,来抢沙发。