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

Uploaded Source

Built Distribution

pogo_migrate-0.0.18-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pogo_migrate-0.0.18.tar.gz
Algorithm Hash digest
SHA256 fdd29ebda0ec0c01725155a9941a77d7520ae7bd1b95d7c66863606e05379c34
MD5 22d1a62db423527fdf47bc5097db1547
BLAKE2b-256 3cc9ed55fdadbbc5a19a3cc672ae33f76e50281aabd4884c0b15e1557737bf12

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for pogo_migrate-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5da23a12b39d780e86bce7389948c5241dfa0c6774923db60e572d97e9cf80
MD5 64508f2265158f68802c11a139738f60
BLAKE2b-256 b5370cf41a24198866fea64828bc3f9ff215fc123b341cc6006b985604f6f969

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