nova/nova/db/main/migrations
Stephen Finucane b02166c91f db: Replace use of Column.copy() method
Resolve the following RemovedIn20Warning warning:

  The Column.copy() method is deprecated and will be removed in a future
  release.

The recommended solution here (by zzzeek himself) is to use the private
method. This method isn't perfect (hence why the public version was
deprecated) but it's more than okay for what we want. The alternative is
to effectively vendor a variant of the 'Column.copy()' code, which means
we'll lose out on any future bug fixes.

Change-Id: Ia663251dfa7cf8f7d33f19902a92bcc586ae9f43
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-04-08 15:57:03 +01:00
..
versions db: Replace use of Column.copy() method 2022-04-08 15:57:03 +01:00
README.rst db: Add initial alembic migration for main DB 2021-08-09 15:34:40 +01:00
env.py db: De-duplicate list of removed table columns 2021-10-18 20:26:18 +01:00
script.py.mako db: Enable auto-generation of migrations 2021-08-09 15:34:40 +01:00

README.rst

Migrations for the main database

This directory contains migrations for the main database. These are implemented using alembic, a lightweight database migration tool designed for usage with SQLAlchemy.

The best place to start understanding Alembic is with its own tutorial. You can also play around with the alembic command:

$ alembic --help