Skip to main content

Database migrations with SQL

Project description

Yoyo is a database schema migration tool. You write database migrations as Python scripts containing raw SQL statements or Python functions.

What does yoyo-migrations do?

As your database application evolves, changes to the database schema may be required. Yoyo lets you write migration scripts in Python containing SQL statements to migrate your database schema to a new version.

A simple migration script looks like this:

Yoyo manages these database migration scripts, gives you command line tools to apply and rollback migrations, and manages dependencies between migrations.

Database support

PostgreSQL, MySQL and SQLite databases are supported. ODBC and Oracle database backends are available (but unsupported).

Documentation and code

Yoyo migrations documentation | Repository

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

yoyo-migrations-7.0.2.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

yoyo_migrations-7.0.2-py2.py3-none-any.whl (34.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yoyo-migrations-7.0.2.tar.gz.

File metadata

  • Download URL: yoyo-migrations-7.0.2.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for yoyo-migrations-7.0.2.tar.gz
Algorithm Hash digest
SHA256 9eafa229541e6c52b2c7a791531ecb1577f72e3bdb78e9b7a1516c64599f601a
MD5 3e1772cf41ee17c9f8cc83b13bbbf7ce
BLAKE2b-256 2eb3902048f62f44d4ddbff250f72c3e6b7852e881547427660ce3349c402d62

See more details on using hashes here.

File details

Details for the file yoyo_migrations-7.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: yoyo_migrations-7.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for yoyo_migrations-7.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8aaba72894601ed4c14fa25f0c531473254ee8dad015f902e54252ca5544fb2
MD5 4ae01b5c423a8a862c668fdbb7dde27b
BLAKE2b-256 5cc9523d8eb44ee7ca5a667d5b9484baaaa4529052d0bc436060c82496549b27

See more details on using hashes here.

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