Skip to main content

Database Migration Engine

Project description

https://travis-ci.org/Shoobx/migrant.png?branch=master https://coveralls.io/repos/github/Shoobx/migrant/badge.svg?branch=master https://img.shields.io/pypi/v/migrant.svg https://img.shields.io/pypi/pyversions/migrant.svg Maintainability

Migrant is a database schema version management framework

Features include:

  • backend agnostic core

  • explicit migration script ordering

  • support for downgrading

  • support for out-of-order migrations

  • support for migrating multiple homogenuous databases

Development

To set up development environment, use pipenv:

pipenv install --dev

To run tests, use pytest:

pytest

To run tests under all supported environments, use tox:

tox --skip-missing-interpreters

To check for typing errors, use mypy:

mypy src

CHANGELOG

1.5.0 (2023-01-24)

  • License under MIT

1.4.0 (2020-04-28)

  • Ability to skip database from migration, when it not available.

  • API change: to support parallel processing Backend class grew connection management methods, that needs to be implemented in plugins.

  • Type annotations added

  • Support migration of multiple databases in parallel (see –parallel command line argument for command)

  • Add support for Python-3.8

  • Drop support for Python-2.7

  • Modernize development environment with pipenv

1.3.1 (2019-03-01)

  • Updated the script template to make it lint friendly.

1.3.0 (2018-07-11)

  • Suppport for Python 3.6 and 3.7. Dropped Python 3.5.

  • Fixed compatibility to not use future, since it imported ConfigParser as configparser in Python 2.7. Instead the official configparser backport is used.

1.2.1 (2018-02-06)

  • Bugfix: proper error when cmd argument missing in Python 3

1.2.0 (2018-02-06)

  • Python 3 compatibility.

1.1.1 (2017-05-23)

  • Update README.rst badges.

1.1.0 (2017-05-23)

  • First public release using all public tools.

1.0.0 (2017-05-16)

  • First packaged version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

migrant-1.5.0.tar.gz (15.3 kB view details)

Uploaded Source

File details

Details for the file migrant-1.5.0.tar.gz.

File metadata

  • Download URL: migrant-1.5.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for migrant-1.5.0.tar.gz
Algorithm Hash digest
SHA256 910f182d06be09b9581a72d3ea9535e1abc1a861696ce64a5d3a8fa65ae80113
MD5 08ca69c6bf3910c06c32b407bd696a82
BLAKE2b-256 516e0d2cb74dd9d4f9a666131c628e40e39217b2d998904b53d1bf85d00c7b14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page