Skip to main content

Yoyo database migrations

License codecov

This project has been clone from ollyc/yoyo. Thanks Ollyc!!

Why this repository?

  • To improve project documentation
  • To fix bugs related to different python versions
  • I had different issues on Mac but not on Linux, so fix them
  • To add full support for Python 3.6/3.7 (annotations, async/io databases drivers)
  • To add new Features
  • To add full code coverage

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

Installation:

pip install yoyo-database-migrations

Documentation:

https://marcosschroh.github.io/yoyo-database-migrations/

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:

# file: migrations/0001.create-foo.py
from yoyo import step
step(
    "CREATE TABLE foo (id INT, bar VARCHAR(20), PRIMARY KEY (id))",
    "DROP TABLE foo",
)

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).

Improvements

  • Command yoyo showmigrations added

Release files for yoyox 2023.3.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yoyox 2023.3.16.0
File Size Uploaded
yoyox-2023.3.16.0.tar.gz 40.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yoyox 2023.3.16.0
File Interpreter ABI Platform
yoyox-2023.3.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.9 kB

Release files / yoyox-2023.3.16.0.tar.gz

Download URL yoyox-2023.3.16.0.tar.gz
Size 40.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9bc5ca51e2359748ad405931b0f6eba5f251f454bb31fdb94d94f8e4e2210112
BLAKE2b-256 checksum
How to use checksums
abf6466c53daa07d6b85c3e3c6391d67a5b6d3a54e52007531cec64424cb498d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / yoyox-2023.3.16.0-py3-none-any.whl

Download URL yoyox-2023.3.16.0-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9bc5b75ec18dd0cacd7589de6f2c69cf5462ca2b8767a5b426f9059ba897726
BLAKE2b-256 checksum
How to use checksums
1a84d969c17c5d9b82b718dbd4926b7373af9fc40cd39337512d3e5efb30eb73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

2023.3.16.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page