{"id":16674871,"url":"https://github.com/hackzilla/doctrinemigrationprunerbundle","last_synced_at":"2025-12-28T16:32:38.468Z","repository":{"id":204308922,"uuid":"711555417","full_name":"hackzilla/DoctrineMigrationPrunerBundle","owner":"hackzilla","description":"Prune excess doctrine migrations","archived":false,"fork":false,"pushed_at":"2023-11-22T21:20:13.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-25T03:44:11.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackzilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-29T16:17:06.000Z","updated_at":"2023-11-01T14:07:15.000Z","dependencies_parsed_at":"2023-11-22T22:26:37.320Z","dependency_job_id":"08bbcdeb-0d64-4f1b-b786-71e0bff2d94e","html_url":"https://github.com/hackzilla/DoctrineMigrationPrunerBundle","commit_stats":null,"previous_names":["hackzilla/doctrinemigrationprunerbundle"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2FDoctrineMigrationPrunerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2FDoctrineMigrationPrunerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2FDoctrineMigrationPrunerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2FDoctrineMigrationPrunerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackzilla","download_url":"https://codeload.github.com/hackzilla/DoctrineMigrationPrunerBundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243331715,"owners_count":20274325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T12:44:43.674Z","updated_at":"2025-12-28T16:32:33.413Z","avatar_url":"https://github.com/hackzilla.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/hackzilla"],"categories":[],"sub_categories":[],"readme":"# Doctrine Migration Pruner Bundle\n\n## Features\n- Automatically prunes old migration files and their corresponding database entries just before running new Doctrine migrations.\n- Designed to work in production; migration files should be absent, leaving only the database entries to be removed.\n- Handles Doctrine migrations' multiple configurations.\n- Prevents warnings about missing migration files if you manually removed them.\n\n### Supported Platforms\n\n- MySQL\n- Sqlite\n\n## Prerequisites\n- Requires Doctrine Migration Bundle.\n- Tested on Symfony 6, but should work wherever Doctrine Migrations Bundle v3.* is compatible.\n\n## Installation\nTo install the Doctrine Migration Pruner Bundle, you can use composer:\n\n```bash\ncomposer require hackzilla/doctrine-migration-pruner-bundle\n```\n\n## Configuration\nAdd the following to your application's config:\n\n```yaml\nhackzilla_doctrine_migration_pruner:\n  remove_migrations_before: '2007-05-01'  # Can be null or a valid date-time\n```\n\nIt's advisable to start with an earlier date-time.\n\n## Usage\nRun your Doctrine migrations as you normally would:\n\n```bash\nbin/console doctrine:migrations:migrate\n```\n\nNote: The pruning operation will not execute if the `--dry-run` option has been specified.\n\n## Testing\nThere are currently no tests available.\n\nHowever, you can use \n[Doctrine Migration Pruner Repo](https://github.com/hackzilla/DoctrineMigrationPruner) to test the migration pruning.\n\n## Contributions and Issues\nSee all contributors on [GitHub](https://github.com/hackzilla/DoctrineMigrationPrunerBundle/graphs/contributors).\n\nPlease report issues using GitHub's issue tracker: [GitHub Repo](https://github.com/hackzilla/DoctrineMigrationPrunerBundle)\n\nIf you find this project useful, consider [buying me a coffee](https://www.buymeacoffee.com/hackzilla).\n\n## License\n\nThis bundle is released under the MIT license. See the [LICENSE](https://github.com/hackzilla/DoctrineMigrationPrunerBundle/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackzilla%2Fdoctrinemigrationprunerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackzilla%2Fdoctrinemigrationprunerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackzilla%2Fdoctrinemigrationprunerbundle/lists"}