1
1
mirror of https://github.com/yandex/pgmigrate.git synced 2024-11-09 16:36:05 +03:00
Simple tool to evolve PostgreSQL schema easily.
Go to file
2017-02-06 13:00:04 +03:00
doc First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
features First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
.gitignore First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
.isort.cfg First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
.pylintrc First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
.travis.yml First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
AUTHORS Updated copyrights 2017-02-06 13:00:04 +03:00
Dockerfile First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
LICENSE First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
Makefile First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
pgmigrate.py Updated copyrights 2017-02-06 13:00:04 +03:00
README.md Add overview and badges in README 2016-10-04 13:27:06 +03:00
run_test.sh First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00
setup.py Updated copyrights 2017-02-06 13:00:04 +03:00
tox.ini First opensource version - PGmigrate 1.0.0 2016-10-03 18:52:42 +03:00

PyPI version Build Status

PGmigrate

PostgreSQL migrations made easy

Overview

PGmigrate is a database migration tool developed by Yandex.

PGmigrate has the following key-features:

  • Transactional and nontransactional migrations: you can enjoy whole power of PostgreSQL DDL
  • Callbacks: you can run some DDL on specific steps of migration process (e.g. drop some code before executing migrations, and create it back after migrations were applied)
  • Online migrations: you can execute series of transactional migrations and callbacks in a single transaction (so, if something goes wrong simple ROLLBACK will bring you in consistent state)

Install

pip install yandex-pgmigrate

Running tests

Tests require running PostgreSQL instance with superuser (to create/drop dbs). You could setup this yourself and use tox to start tests:

tox

Second option is to use docker and make:

make test

How to use

Complete manual is here.

Release history

  • 1.0.0 (2016-10-03)
    • First opensource version

License

Distributed under the PostgreSQL license. See LICENSE for more information.