tito10047 / migration-backup
Backup database on migrate command
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/doctrine-bundle: ^2.12
- doctrine/orm: ^2.19|^3.1.0
- symfony/filesystem: ^6.4|^7.0
- symfony/framework-bundle: ^6.4|^7.0
README
This bundle provides a simple way to backup your database schema and data before running migrations.
Usage
php bin/console doctrine:migrations:migrate --backup
Configuration
when@dev: migration_backup: backup_path: '%kernel.project_dir%/var/migration_backup' database: - default
Installation
$ composer require tito10047/migration-backup
// config/bundles.php return [ // ... Tito10047\MigrationBackup\MigrationBackupBundle::class => ['dev' => true], ];