highcore / doctrine-migration-bundle
Doctrine migrations Symfony bundle.
Installs: 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/highcore/doctrine-migration-bundle
Requires
- php: ^8.1 || ^8.2
- doctrine/doctrine-bundle: ^2.9
- doctrine/migrations: ^3.6
- symfony/config: ^5.4 || ^6.0 || ^7.0
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2025-09-15 15:12:55 UTC
README
Installation
composer require highcore/doctrine-migration-bundle
Usage
To create SQL files with migration, use:
./bin/console doctrine:migrations:generate
To create a diff SQL migration with your actual database:
./bin/console doctrine:migrations:diff
Example
$ tree
.
├── sql
│ ├── Version20220708173033_up.sql
│ ├── Version20220708173033_down.sql
│ ├── Version20220710115549_up.sql
│ ├── Version20220710115549_down.sql
├── Version20220708173033.php
├── Version20220710115549.php
You can delete
_down.sql
migration if you don't need it.