Skip to main content

Database migration tool for asyncpg

Project description

Pogo migrate - asyncpg migration tooling

image image image style tests codecov

pogo-migrate is a migration tool intended for use with asyncpg and assists with maintaining your database schema (and data if required) as it evolves. Pogo supports migrations written in raw sql, as well as python files (useful when data needs to be migrated).

A migration can be as simple as:

-- a descriptive message
-- depends: 20210101_01_abcdef-previous-migration

-- migrate: apply
CREATE TABLE foo (id INT, bar VARCHAR(20), PRIMARY KEY (id));

-- migrate: rollback
DROP TABLE foo;

Pogo manages these migration scripts and provides command line tools to apply, rollback and show migration history.

See the docs for more details.

Thanks and Credit

Inspiration for this tool is drawn from yoyo and dbmate.

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

pogo_migrate-0.1.1.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

pogo_migrate-0.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file pogo_migrate-0.1.1.tar.gz.

File metadata

  • Download URL: pogo_migrate-0.1.1.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pogo_migrate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 52243113b3846b41834d3755ecb14e79a53a20d547861de82299a592734ef021
MD5 78ed6ac5faf2dd7cc9a9dc99acb6a87a
BLAKE2b-256 abc8e5f9155c80fd7d1f067df39d1072df29355267fd7907182d08ebf501faf9

See more details on using hashes here.

Provenance

File details

Details for the file pogo_migrate-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pogo_migrate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e177b004e1eeba297959e4671c119d40d5bff79aecb298827ee13630829624ce
MD5 94a9ff431ddf8c8045cb3248bee9f26a
BLAKE2b-256 97e909d73e6eea6301ebcb029a7c8b650bff2b4712c43bd784b8ee4e87a8f6c8

See more details on using hashes here.

Provenance

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