Dump changes

This commit is contained in:
Andrey Chervyakov 2021-10-09 21:33:03 +06:00
parent b49c6ced26
commit a4b572dcc7
40 changed files with 186 additions and 37 deletions

View file

@ -9,8 +9,9 @@ from alembic import context
sys.path.append(str(pathlib.Path(__file__).resolve().parents[2]))
from app.db import DATABASE_URL
from app.db import DATABASE_URL, EntityBase
from app.user.model import User
from app.role.model import Role
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
@ -24,7 +25,7 @@ fileConfig(config.config_file_name)
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = [User.metadata]
target_metadata = EntityBase.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired: