What problem does it solve?
This Skill provides an automated, reliable workflow to manage The Dreamer's Cave MySQL database, including schema evolution, migrations, data seeding, and safe backups/restores, reducing manual DB toil and drift across environments.
Core Features & Use Cases
- Schema management: maintain the canonical schema with sql/schema.sql and coordinated migrations.
- Migrations & seeding: apply incremental migrations from sql/migrations and seed initial data from sql/seeds.
- Backup & restore: create consistent backups and restore from them using standard MySQL CLI tools for disaster recovery and environment replication.
- Use Case: a developer initializes a new environment by reproducing production schema, running migrations, seeding data, and setting up a local database identical to production.
Quick Start
Run the following commands to get started:
- Initialize from scratch: ./sql/scripts/init_db.sh --drop-existing
- Apply pending migrations: ./sql/scripts/migrate.sh
- Create a backup: ./sql/scripts/backup.sh tdcweb_backup
- Restore from backup: ./sql/scripts/restore.sh /path/to/tdcweb_backup.sql.gz