diff options
author | Zuul <zuul@review.opendev.org> | 2023-03-30 04:24:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-03-30 04:24:19 +0000 |
commit | 2258a062596951eb095d8b426dfa9d314e7b69a5 (patch) | |
tree | b3b0e4f012730a2ef2f418e3d0f3b6b2f612064d | |
parent | 5bf9408b3c1d3b4db975c077592631386fa2f560 (diff) | |
parent | ac25a28d1fbec0e7c52646a29bd01b865906c447 (diff) | |
download | heat-2258a062596951eb095d8b426dfa9d314e7b69a5.tar.gz |
Merge "db: Wire up for auto-generation"
-rw-r--r-- | heat/db/sqlalchemy/migrations/env.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/heat/db/sqlalchemy/migrations/env.py b/heat/db/sqlalchemy/migrations/env.py index b0df5e9b3..138d28374 100644 --- a/heat/db/sqlalchemy/migrations/env.py +++ b/heat/db/sqlalchemy/migrations/env.py @@ -12,10 +12,11 @@ from logging.config import fileConfig +from alembic import context from sqlalchemy import engine_from_config from sqlalchemy import pool -from alembic import context +from heat.db.sqlalchemy import models # this is the Alembic Config object, which provides # access to the values within the .ini file in use. @@ -26,11 +27,8 @@ config = context.config if config.config_file_name is not None: fileConfig(config.config_file_name) -# add your model's MetaData object here -# for 'autogenerate' support -# from myapp import mymodel -# target_metadata = mymodel.Base.metadata -target_metadata = None +# this is the MetaData object for the various models in the database +target_metadata = models.BASE.metadata def run_migrations_offline() -> None: |