Metadata-Version: 2.4
Name: yoyo-migrations
Version: 6.1.0
Summary: Database migrations with SQL
Home-page: https://ollycope.com/software/yoyo/latest/
Author: Oliver Cope
Author-email: oliver@redgecko.org
License: Apache
Keywords: migrations migrate database alembic south
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Database
Classifier: Topic :: Database :: Front-Ends
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Version Control
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
License-File: LICENSE.txt
Requires-Dist: text-unidecode
Requires-Dist: iniherit
Provides-Extra: mysql
Requires-Dist: PyMySQL; extra == "mysql"
Provides-Extra: postgres
Requires-Dist: psycopg2; extra == "postgres"
Provides-Extra: pyodbc
Requires-Dist: pyodbc; extra == "pyodbc"
Dynamic: license-file

Yoyo database migrations
========================

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:

.. code::python

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

Documentation and code
----------------------

`Yoyo migrations documentation <https://ollycope.com/software/yoyo/>`_
\| `Repository <https://bitbucket.org/ollyc/yoyo/>`_
