Zum Inhalt springen
Kitbay
Skill

Create database migration

MITAktualisiert am 11. Nov. 202655.770GitHub-Sterne

A contributor skill in the Ghost repository, used as a checklist alongside Ghost's database migration guide, for any change to Ghost's MySQL schema: adding, removing or renaming tables or columns, adding settings, creating indexes or updating data.

Was der Skill vermittelt

A contributor skill in the Ghost repository, used as a checklist alongside Ghost's database migration guide, for any change to Ghost's MySQL schema: adding, removing or renaming tables or columns, adding settings, creating indexes or updating data. The agent generates the migration file with the repository's generator rather than by hand, writes it with Ghost's migration helpers, updates the schema definition to match, and tests migrating forward, rolling back and migrating forward again. It then runs the migration integration test, updates the exporter's table lists and its test when a table is added or dropped, runs the schema sync and integrity checks, and repeats the unit tests until they pass. Tables still being designed can be marked as in development instead.

Funktionen

In der Dokumentation nicht angegeben