---
name: Doctrine Migrations
slug: doctrine-migrations
category: DevOps
description: Doctrine Migrations creates and manages Doctrine schema versioning for Symfony projects. Use it when changing entities, handling rollbacks, or preparing production-safe database updates.
github: "https://github.com/dev-toolings/superpowers-symfony/tree/main/skills/doctrine-migrations"
language: TypeScript
stars: 208
forks: 20
install: "npx degit https://github.com/dev-toolings/superpowers-symfony/tree/main/skills/doctrine-migrations ~/.claude/skills/doctrine-migrations"
installs_to: ~/.claude/skills/doctrine-migrations
source_path: skills/doctrine-migrations/SKILL.md
collection_size: 23
category_size: 920
collection_url: "https://dirskills.com/collections/dev-toolings/superpowers-symfony"
added: 2026-09-04T05:27:07.228Z
last_synced: 2026-09-04T05:27:07.228Z
canonical_url: "https://dirskills.com/skills/doctrine-migrations"
---

# Doctrine Migrations

Doctrine Migrations creates and manages Doctrine schema versioning for Symfony projects. Use it when changing entities, handling rollbacks, or preparing production-safe database updates.

**Install:**

```bash
npx degit https://github.com/dev-toolings/superpowers-symfony/tree/main/skills/doctrine-migrations ~/.claude/skills/doctrine-migrations
```

## README

# Doctrine Migrations (Symfony)

## Use when
- Designing entity relations or schema evolution.
- Improving Doctrine correctness/performance.

## Default workflow
1. Model ownership/cardinality and transactional boundaries.
2. Apply mapping/schema changes with migration safety.
3. Tune fetch/query behavior for hot paths.
4. Verify lifecycle behavior with targeted tests.

## Guardrails
- Keep owning/inverse sides coherent.
- Avoid destructive migration jumps in one release.
- Eliminate accidental N+1 and over-fetching.

## Progressive disclosure
- Use this file for execution posture and risk controls.
- Open references when deep implementation details are needed.

## Output contract
- Entity/migration changes.
- Integrity and performance decisions.
- Validation outcomes and rollback notes.

## References
- `reference.md`
- `docs/complexity-tiers.md`
