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.0.19.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

pogo_migrate-0.0.19-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.0.19.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure

File hashes

Hashes for pogo_migrate-0.0.19.tar.gz
Algorithm Hash digest
SHA256 ab312062165bdc5ca72e0447bda7501a59b4a57a412daeec3b87d3ac7cf2adc7
MD5 2aa41c0ae76d732607a61214945b6aff
BLAKE2b-256 fc4ae559996c241da246fb3fd881bfbbf552c407f30f7b4c9474f6b3b6de0657

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pogo_migrate-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure

File hashes

Hashes for pogo_migrate-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 0417f3b709b2824afe6c0dfe4de4c99eebf900ac7175bdd15c0fc260ca00d8c3
MD5 9f4f38cbbc49ba607892a360ce6b9001
BLAKE2b-256 cb3e5eb7cd5091ce32ddb6d367b75afa5025078fdbd3ceee44c2bf86ae4ac8cf

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