2017 © Pedro Peláez
 

library postgres-migration

Lightweight php migration tool for PostgreSQL databases

image

ludwig-br/postgres-migration

Lightweight php migration tool for PostgreSQL databases

  • Friday, October 27, 2017
  • by LudwigBr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

postgres-migration

Lightweight php migration tool for PostgreSQL databases., (*1)

Getting Started

Prerequisites

To use this tool you need to have installed:, (*2)

Php 7.1+
PostgreSQL 9.6+

Details: composer.json, (*3)

Installing

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

Additional Information

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)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*9)

The Versions

27/10 2017

dev-master

9999999-dev

Lightweight php migration tool for PostgreSQL databases

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Ludwig Breitsprecher

27/10 2017

v1.0.1

1.0.1.0

Lightweight php migration tool for PostgreSQL databases

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Ludwig Breitsprecher

26/10 2017

v1.0

1.0.0.0

Lightweight php migration tool for PostgreSQL databases

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

by Ludwig Breitsprecher