金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

create-migration

create-migration 是面向数据库的 Agent Skill,来自 owid/owid-grapher。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Create a new database migration file for the OWID MySQL database. Use when the user needs to create a database schema change or migration.

SKILL.md

下载 MD ↓
namecreate-migration
descriptionCreate a new database migration file for the OWID MySQL database. Use when the user needs to create a database schema change or migration.

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).

来源:owid/owid-grapher · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本