Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for yoyo-migrations, version 6.1.0
Filename, size File type Python version Upload date Hashes
Filename, size yoyo_migrations-6.1.0-py2.py3-none-any.whl (34.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size yoyo-migrations-6.1.0.tar.gz (36.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page