SQL Alchemy 2.x: Stop using deprecated API

This patch fixes magnum/db/sqlalchemy/models.py:99: MovedIn20Warning:
Deprecated API features detected! errors.

See [1].

[1]: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#migration-orm-configuration

Change-Id: I397fc59fefab86149a023ff8102e0823fa5ab6a7
This commit is contained in:
Michal Nasiadka 2024-02-01 12:29:13 +01:00
parent b5382faeb0
commit 021293d8f8

View File

@ -22,8 +22,8 @@ import six.moves.urllib.parse as urlparse
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Integer
from sqlalchemy.orm import declarative_base
from sqlalchemy import schema
from sqlalchemy import Text
from sqlalchemy.types import TypeDecorator, TEXT, String