create-migration

star 1.5k

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

owid By owid schedule Updated 4/16/2026

name: create-migration description: Create a new database migration file for the OWID MySQL database. Use when the user needs to create a database schema change or migration. metadata: internal: true


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

Install via CLI
npx skills add https://github.com/owid/owid-grapher --skill create-migration
Repository Details
star Stars 1,545
call_split Forks 250
navigation Branch main
article Path SKILL.md
More from Creator