feat: use Mapped syntax for columns
This commit is contained in:
parent
cb70f17ad5
commit
6397bd1316
9 changed files with 108 additions and 105 deletions
|
|
@ -12,7 +12,7 @@ from src.organisation.models import Organisation, OrgUsers
|
|||
from src.user.models import User
|
||||
from src.service.models import Service
|
||||
from src.iam.models import Permission, Group, GroupPermissions, UserGroups
|
||||
from src.database import Base
|
||||
from src.models import CustomBase
|
||||
|
||||
# this is the Alembic Config object, which provides
|
||||
# access to the values within the .ini file in use.
|
||||
|
|
@ -27,7 +27,7 @@ if config.config_file_name is not None:
|
|||
# for 'autogenerate' support
|
||||
# from myapp import mymodel
|
||||
# target_metadata = mymodel.Base.metadata
|
||||
target_metadata = Base.metadata
|
||||
target_metadata = CustomBase.metadata
|
||||
|
||||
# other values from the config, defined by the needs of env.py,
|
||||
# can be acquired:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue