Download the PHP package hackzilla/doctrine-migration-pruner-bundle without Composer
On this page you can find all versions of the php package hackzilla/doctrine-migration-pruner-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hackzilla/doctrine-migration-pruner-bundle
More information about hackzilla/doctrine-migration-pruner-bundle
Files in hackzilla/doctrine-migration-pruner-bundle
Package doctrine-migration-pruner-bundle
Short Description Prune excess doctrine migrations
License MIT
Informations about the package doctrine-migration-pruner-bundle
Doctrine Migration Pruner Bundle
Features
- Automatically prunes old migration files and their corresponding database entries just before running new Doctrine migrations.
- Designed to work in production; migration files should be absent, leaving only the database entries to be removed.
- Handles Doctrine migrations' multiple configurations.
- Prevents warnings about missing migration files if you manually removed them.
Supported Platforms
- MySQL
- Sqlite
Prerequisites
- Requires Doctrine Migration Bundle.
- Tested on Symfony 6, but should work wherever Doctrine Migrations Bundle v3.* is compatible.
Installation
To install the Doctrine Migration Pruner Bundle, you can use composer:
Configuration
Add the following to your application's config:
It's advisable to start with an earlier date-time.
Usage
Run your Doctrine migrations as you normally would:
Note: The pruning operation will not execute if the --dry-run
option has been specified.
Testing
There are currently no tests available.
However, you can use Doctrine Migration Pruner Repo to test the migration pruning.
Contributions and Issues
See all contributors on GitHub.
Please report issues using GitHub's issue tracker: GitHub Repo
If you find this project useful, consider buying me a coffee.
License
This bundle is released under the MIT license. See the LICENSE file for details.