Download the PHP package matheusbiagini/biagini-migration without Composer
On this page you can find all versions of the php package matheusbiagini/biagini-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matheusbiagini/biagini-migration
More information about matheusbiagini/biagini-migration
Files in matheusbiagini/biagini-migration
Package biagini-migration
Short Description Data migration mechanism for php using dbal do doctrine with pdo, schema and queryBuilder
License
Informations about the package biagini-migration
Biagini Migration
A library to handle migrations of data from your database. It uses and provides migrations with instances of doctrine dbal, giving greater flexibility to the developer. It uses the symfony console, which enables friendly and iterative help.
Setting.
1) Create a file in your personal project with whatever name you prefer:
Ex: example.php
2) Now your newly created file has become a central data migration command, to access the terminal type:
Creating a Data Migration.
This migration command offers the possibility to add commands and sql statements using Doctrine's Dbal. To generate a class of data migration you must enter the following command in the terminal:
After you run the command, a class is created in the path that you have defined in the settings. Now edit the created class and add the instructions you need for your data migration.
Running the migrations that were created.
To run your migration classes, you need to run the following command on your terminal:
For more information on the optional parameters of this command, run the command with the --help end on your terminal. Ex:
Reverting a migration.
To roll back a migration or roll the rollback that you set, run the following command on your terminal:
- filename is the class name of your data migration.
Ex:
For more information on the optional parameters of this command, run the command with the --help end on your terminal. Ex:
Author:
Enjoy it :)
All versions of biagini-migration with dependencies
symfony/console Version ^3.4
symfony/config Version ^3.4
symfony/yaml Version ^3.4
doctrine/orm Version 2.*