Skip to main content

A fork of yoyo that's designed to support the 3.10+ python versions

Project description

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

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

yoyox-0.1.0.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoyox-0.1.0-py2.py3-none-any.whl (36.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file yoyox-0.1.0.tar.gz.

File metadata

  • Download URL: yoyox-0.1.0.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for yoyox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c72544ec944fe3f0d2a875d14bc9c938c83ec654f126f1959f3fae30ef63ab75
MD5 3d7a2aaa83b320759d8166e09b88daea
BLAKE2b-256 c3c9c447a10cb837dffd42d27f509b662f72ea319c99cfa1b22575883ffc285b

See more details on using hashes here.

File details

Details for the file yoyox-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: yoyox-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for yoyox-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0954f44620a3f2362c9ae44ab20a0ec2d13b36870ce512ac78cc78f8778b588b
MD5 483fd78d9d83ed1aa6b5797cf40b2f86
BLAKE2b-256 1e7753ad86f92a67bb1114d40edd59251e6c74f1ac6da0cb88a4e27d30a82814

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page