https://github.com/highcoreorg/doctrine-migration-bundle
Symfony Bundle for Doctrine Migrations, which helps to generate separate SQL files for UP and DOWN migrations.
https://github.com/highcoreorg/doctrine-migration-bundle
Last synced: 6 months ago
JSON representation
Symfony Bundle for Doctrine Migrations, which helps to generate separate SQL files for UP and DOWN migrations.
- Host: GitHub
- URL: https://github.com/highcoreorg/doctrine-migration-bundle
- Owner: highcoreorg
- Created: 2023-05-31T20:24:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T12:33:48.000Z (10 months ago)
- Last Synced: 2024-09-15T14:48:34.401Z (8 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Highcore Doctrine Migrations Bundle
## Installation
```shell
composer require highcore/doctrine-migration-bundle
```## Usage
To create SQL files with migration, use:
```shell
./bin/console doctrine:migrations:generate
```To create a diff SQL migration with your actual database:
```shell
./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.