pgmigrate

Simple tool to evolve PostgreSQL schema easily.

  • 所有者: yandex/pgmigrate
  • 平台:
  • 许可证: PostgreSQL License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.3 (2017-12-28)
    • Fix migration error with comment at the end of file
    • Add blocking pids termination
    • Some minor fixes and improvements
  • 1.0.2 (2017-04-05)
    • Speed up get_info function a bit
    • Fix callbacks in transactional/nontransactional migrations mix on db init
  • 1.0.1 (2017-04-01)
    • Fix bug with python format patterns in migration text
    • Sort info command output by version
    • Support 'latest' target version
    • Add option to override user in migration meta
    • Fix info command fail without target on initialized database
    • Add session setup option
  • 1.0.0 (2016-10-03)
    • First opensource version

License

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

概览

名称与所有者yandex/pgmigrate
主编程语言Python
编程语言Makefile (语言数: 5)
平台
许可证PostgreSQL License
发布数9
最新版本名称1.0.8 (发布于 )
第一版名称v1.0.0 (发布于 2016-10-03 18:53:11)
创建于2016-10-02 15:36:29
推送于2024-03-08 17:26:29
最后一次提交2024-03-08 17:56:18
星数610
关注者数24
派生数61
提交数75
已启用问题?
问题数16
打开的问题数0
拉请求数8
打开的拉请求数0
关闭的拉请求数15
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部