php-symfony-doctrine-migrations

Generate and apply Doctrine migrations in Symfony projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/LounisBou/claude-code --skill php-symfony-doctrine-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-symfony-doctrine-migrations
Source: https://github.com/LounisBou/claude-code/tree/main/skills-available/symfony/php-symfony-doctrine-migrations
Command: npx skills add https://github.com/LounisBou/claude-code --skill php-symfony-doctrine-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Doctrine migrations automate and manage database schema versioning and deployment in Symfony projects, reducing manual DBA work and drift between environments.

Core Features & Use Cases

  • Generate and apply migrations with Symfony/Doctrine (make:migration, doctrine:migrations:migrate)
  • Validate and review migrations, run status checks, and rollback as needed
  • Use in production deployment workflows with safe rollback and schema validation

Quick Start

Generate the next migration for your Symfony project by running make:migration and review the resulting diff.

Frequently Asked Questions about php-symfony-doctrine-migrations

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

FAQPage Schema
How do I generate and run Doctrine migrations in a Symfony project?

To run Doctrine migrations in Symfony, use make:migration to generate a migration from your schema diff, then execute doctrine:migrations:migrate to apply the changes to your database safely.

What is the best way to manage database schema versioning across Symfony environments?

Database schema versioning in Symfony is managed by Doctrine migrations, which automate deployment and prevent schema drift between environments by tracking changes in versioned migration files.

Can I rollback a database migration in a Symfony production deployment?

Yes, you can rollback a database migration during a Symfony production deployment using Doctrine migration commands, which support safe rollbacks and schema validation to revert to a previous state.

How do I check the status of pending database schema changes before applying them?

You can check the status of pending database schema changes by running Doctrine migration status checks in Symfony, which validate your configuration and list any migrations not yet executed.

Why does running doctrine:migrations:migrate fail during my Symfony deployment?

If doctrine:migrations:migrate fails during a Symfony deployment, it is often due to invalid configuration or unexecuted previous migrations; validate your schema and review the migration diff before applying.