https://github.com/a5sys/doctrinemigrationtoolsbundle
Tools for the doctrine migration bundle
https://github.com/a5sys/doctrinemigrationtoolsbundle
doctrine-migrations symfony-bundle
Last synced: about 1 month ago
JSON representation
Tools for the doctrine migration bundle
- Host: GitHub
- URL: https://github.com/a5sys/doctrinemigrationtoolsbundle
- Owner: A5sys
- License: mit
- Created: 2015-11-24T16:51:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T08:15:02.000Z (over 4 years ago)
- Last Synced: 2025-04-10T03:52:39.862Z (about 1 month ago)
- Topics: doctrine-migrations, symfony-bundle
- Language: PHP
- Size: 22.5 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DoctrineMigrationToolsBundle
Tools for the doctrine migration bundle
# Installation
composer require a5sys/doctrine-migration-tools-bundle
# Generate versions from schema file for the doctrine-migration
The diff command of doctrine generate the version file from the diff between your database and the current schema.This command generate the version from the diff between the schema stored in a file and your current schema.
So you only have to run the command before doing a new version of your app.
php bin/console doctrine:migrations:diff-file
A version file will be generated (if required) and your current schema will be dumped in a file. (in /app/DoctrineMigrations/SchemaVersion)
You can automatically check that the migrations have been generated using the check option
php bin/console doctrine:migrations:diff-file --check
The exit code 1 will be used if a migration should have been generated