database-migrations

Automates MongoDB schema migrations with Doctrine ODM for versioned entity changes.

5|Updated May 30, 2023
One-click install
npx skills add https://github.com/VilnaCRM-Org/core-service --skill database-migrations-vilnacrm-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/VilnaCRM-Org/core-service/tree/main/.claude/skills/database-migrations
Command: npx skills add https://github.com/VilnaCRM-Org/core-service --skill database-migrations-vilnacrm-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Core Service uses MongoDB with Doctrine ODM to manage database schema changes in a safe, repeatable way. This Skill provides a standardized migration workflow to evolve domain entities, update mappings, and apply changes across environments without breaking runtime behavior.

Core Features & Use Cases

  • Standardizes MongoDB migrations with Doctrine ODM for versioned schema changes.
  • Supports adding fields, updating mappings, and creating repositories within hexagonal architecture.
  • Validates migrations through schema checks and test database setup to ensure reliability across environments.

Quick Start

Run the migration workflow to add or modify fields with Doctrine ODM and verify changes using schema validation.

Frequently Asked Questions about database-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage MongoDB schema migrations with Doctrine ODM?

MongoDB schema migrations with Doctrine ODM are managed by automating versioned changes to domain entities and mappings. This enforces safe, repeatable schema evolution across environments without breaking runtime behavior.

What is the best way to update MongoDB mappings when adding fields in a hexagonal architecture?

Updating MongoDB mappings when adding fields is standardized through a migration workflow that integrates with hexagonal architecture. It supports modifying domain entities and creating repositories while validating changes via schema checks and test database setup.

Why do I need versioned database migrations for MongoDB?

Versioned database migrations for MongoDB are needed to apply schema changes safely across different environments. They prevent runtime breakage by validating mapping updates and entity modifications before deployment.

Can I validate Doctrine ODM schema changes before applying them to production?

Doctrine ODM schema changes can be validated using schema checks and test database setup. This validation ensures reliability across environments by verifying that entity modifications and mapping updates apply correctly.

Does this migration workflow support the repository pattern with MongoDB?

The migration workflow supports the repository pattern with MongoDB by standardizing the creation and modification of repositories within a hexagonal architecture during schema evolution.

What are the limitations of using Doctrine ODM for MongoDB schema updates?

Doctrine ODM MongoDB schema updates require strict adherence to the migration workflow to avoid runtime breakage. Skipping schema validation or test database setup may cause unreliable mapping changes across environments.