Ghost Database Migration
Automates the generation, implementation, and testing of database migrations for the Ghost publishing platform.
This skill provides a structured workflow for modifying the Ghost CMS database schema, ensuring all changes adhere to the project's strict architectural patterns. It guides Claude through the process of using the 'slimer' utility to generate migration files, updating schema definitions, and maintaining data integrity hashes. By automating the boilerplate of adding tables, columns, or settings, it reduces the risk of manual errors and ensures that migrations are properly registered for export and validated through automated unit and integrity tests.
Key Features
01Synchronized updates to schema.js and exporter table-lists
02Integrated schema integrity testing and hash regeneration
03Support for standardized utility functions within Ghost migrations
04Step-by-step guidance for manual migration testing with knex-migrator
05Automated migration file creation using the internal slimer utility
0651,668 GitHub stars
Use Cases
01Adding new database tables or columns to the Ghost core schema
02Ensuring database schema integrity hashes are updated after modifications
03Implementing schema changes while maintaining data export compatibility