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

0.0.3 2024-07-12 05:21 UTC

This package is auto-updated.

Last update: 2024-12-12 06:11:29 UTC


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],
];