Skip to content

Commit fd39e4b

Browse files
committed
db: Remove legacy migrations
sqlalchemy-migrate does not (and will not) support sqlalchemy 2.0. We need to drop these migrations to ensure we can upgrade our sqlalchemy version. Change-Id: I7756e393b78296fb8dbf3ca69c759d75b816376d Signed-off-by: Stephen Finucane <[email protected]>
1 parent f01a90c commit fd39e4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+24
-3537
lines changed

doc/source/reference/database-migrations.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Schema migrations
2424
The database migration engine was changed from ``sqlalchemy-migrate`` to
2525
``alembic``.
2626

27+
.. versionchanged:: 27.0.0 (Antelope)
28+
29+
The legacy ``sqlalchemy-migrate``-based database migrations were removed.
30+
2731
The `alembic`__ database migration tool is used to manage schema migrations in
2832
nova. The migration files and related metadata can be found in
2933
``nova/db/api/migrations`` (for the API database) and
@@ -36,10 +40,10 @@ respectively.
3640

3741
.. note::
3842

39-
There are also legacy migrations provided in the ``legacy_migrations``
40-
subdirectory for both the API and main databases. These are provided to
41-
facilitate upgrades from pre-Xena (24.0.0) deployments and will be removed
42-
in a future release. They should not be modified or extended.
43+
There were also legacy migrations provided in the ``legacy_migrations``
44+
subdirectory for both the API and main databases. These were provided to
45+
facilitate upgrades from pre-Xena (24.0.0) deployments. They were removed
46+
in the 27.0.0 (Antelope) release.
4347

4448
The best reference for alembic is the `alembic documentation`__, but a small
4549
example is provided here. You can create the migration either manually or

nova/db/api/legacy_migrations/README

Lines changed: 0 additions & 4 deletions
This file was deleted.

nova/db/api/legacy_migrations/__init__.py

Whitespace-only changes.

nova/db/api/legacy_migrations/manage.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

nova/db/api/legacy_migrations/migrate.cfg

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)