diff --git a/docs/changelog.rst b/docs/changelog.rst index 098f000..d5c41aa 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,7 +9,7 @@ Unreleased ---------- -- New ``sqlite-utils migrate`` command for applying Python database migrations, incorporating functionality that was previously provided by the separate `sqlite-migrate `__ plugin. Define migration sets using the new :class:`sqlite_utils.Migrations` class and apply them using ``sqlite-utils migrate database.db migrations.py`` or the :ref:`migrations Python API `. See :ref:`migrations` for details. (:issue:`752`) +- New :ref:`database migrations system `, incorporating functionality that was previously provided by the separate `sqlite-migrate `__ plugin. Define migration sets using the new :class:`sqlite_utils.Migrations` class and apply them using the ``sqlite-utils migrate`` command or the :ref:`migrations Python API `. (:issue:`752`) .. _v3_39: diff --git a/docs/migrations.rst b/docs/migrations.rst index 6b27154..ef1d6db 100644 --- a/docs/migrations.rst +++ b/docs/migrations.rst @@ -8,6 +8,8 @@ A migration is a Python function that receives a :class:`sqlite_utils.Database` instance. Migrations are grouped into named sets using the :class:`sqlite_utils.Migrations` class, and each applied migration is recorded in the ``_sqlite_migrations`` table in that database. +.. _migrations_python: + Applying migrations in Python =============================