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.5.tar.gz (89.1 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.5-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.4.5.tar.gz
  • Upload date:
  • Size: 89.1 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.5.tar.gz
Algorithm Hash digest
SHA256 e458304b1887fea709486d331df6ca56cdcaf3a882ac2feb8e7779698258505d
MD5 b580151d48c1b71754e37c3e0a04af2d
BLAKE2b-256 1bfab1136c83bb58f47252d1fd8004e5ec5feee3bda898173bc530d20e0abf04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pogo_migrate-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c47b921a92789da3639fd80c43758d026593e0026501cffded6107f95a4050ab
MD5 eff77be860639d6fd8209ff03f21046b
BLAKE2b-256 6f2050b6fea17b251264384208d705f292b85133cdcdff703ca406e5e1da9302

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