Wallogit.com
2017 © Pedro Peláez
Lightweight php migration tool for PostgreSQL databases
Lightweight php migration tool for PostgreSQL databases., (*1)
To use this tool you need to have installed:, (*2)
Php 7.1+ PostgreSQL 9.6+
Details: composer.json, (*3)
composer require ludwig-br/postgres-migration
After downloading (with composer or manually) you need to do configuration. Every part you may need to touch is marked with a "ToDo"-statement. - copy the content of the example/ directory into your project, (*4)
.../my_project/database/migrations/
After finishing the configuration you should get a security copy of you database., (*5)
https://www.postgresql.org/docs/current/static/backup.html
Finally you can generate your first migration files!, (*6)
cd .../my_project/database/migration php generate.php
The files will be placed in the directories specified in config/Directories.php for restoration or updating the database after small changes use, (*7)
cd .../my_project/database/migration php reload.php
This project is meant to offer an easy and lightweight way to integrate your (PostgreSQL) Database into your version control system. Furthermore minor changes to the database schema during developement can be applied easily. During generation your database will be altered, therefore please get a security copy before you use this tool. I advice using this tool only in a development environment., (*8)
This project is licensed under the MIT License - see the LICENSE.md file for details, (*9)