Skip to main content

Database migration tool for asyncpg

Project description

Pogo migrate - asyncpg migration tooling

uv ruff 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.4.3.tar.gz (94.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pogo_migrate-0.4.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.4.3.tar.gz
  • Upload date:
  • Size: 94.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pogo_migrate-0.4.3.tar.gz
Algorithm Hash digest
SHA256 d1ce818d6eb37537d7a4762da2ea373550dc1d276e3369a4280525c3ced2cc83
MD5 22d6f068742db9902cff83afbafaf126
BLAKE2b-256 c91af336a025f23e022876d93ca2b344e275f17d0421e0058940de7a20da32ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pogo_migrate-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pogo_migrate-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25f2eff944f8d2e4e657756b37e4344368c5fef4901ea6214e6f5ab654f94332
MD5 c9f1eb677b8547a293b34424b51d4829
BLAKE2b-256 f449e4edab3d0df7208c0eeacda6c7a4afc852abec9a0abc7ee0adf989c50c89

See more details on using hashes here.

Supported by

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