skills/create-database-migration/create-database-migration/SKILL.md
Create a database migration to add a table, add columns to an existing table, add a setting, or otherwise change the schema of Ghost's MySQL database.
npx skillsauth add aiagentskills/skills Create database migrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ghost/core: cd ghost/coreslimer migration <name-of-database-migration>. IMPORTANT: do not create the migration file manually; always use slimer to create the initial empty migration file.ghost/core/core/server/data/migrations/versions if needed, and create the empty migration file with the appropriate name.ghost/core/core/server/data/migrations/utils/*.ghost/core/core/server/data/schema/schema.js, and make sure it aligns with the latest changes from the migration.yarn knex-migrator migrate --v {version directory} --forceghost/core/core/server/data/exporter/table-lists.js as appropriate.yarn test:single test/unit/server/data/schema/integrity.test.jscd ghost/core && yarn test:unitSee examples.md for example migrations.
See rules.md for rules that should always be followed when creating database migrations.
documentation
Guides using bun.sys for system calls and file I/O in Zig. Use when implementing file operations instead of std.fs or std.posix.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
Guides writing HMR/Dev Server tests in test/bake/. Use when creating or modifying dev server, hot reloading, or bundling tests.