Skip to content

Symfony Bundle for Doctrine Migrations, which helps to generate separate SQL files for UP and DOWN migrations.

Notifications You must be signed in to change notification settings

highcoreorg/doctrine-migration-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Highcore Doctrine Migrations Bundle

Installation

composer require highcore/doctrine-migration-bundle

Usage

To create SQL files with migration, use:

./bin/console doctrine:migrations:generate 

To create a diff SQL migration with your actual database:

./bin/console doctrine:migrations:diff

Example

$ tree
.
├── sql
│   ├── Version20220708173033_up.sql
│   ├── Version20220708173033_down.sql
│   ├── Version20220710115549_up.sql
│   ├── Version20220710115549_down.sql
├── Version20220708173033.php
├── Version20220710115549.php

You can delete _down.sql migration if you don't need it.

About

Symfony Bundle for Doctrine Migrations, which helps to generate separate SQL files for UP and DOWN migrations.

Resources

Stars

Watchers

Forks

Packages

No packages published