File "/usr/local/lib/python3.12/site-packages/alembic/__init__.py", line 1, in <module>
from . import context
File "/usr/local/lib/python3.12/site-packages/alembic/context.py", line 1, in <module>
from .runtime.environment import EnvironmentContext
File "/usr/local/lib/python3.12/site-packages/alembic/runtime/environment.py", line 23, in <module>
from .migration import _ProxyTransaction
File "/usr/local/lib/python3.12/site-packages/alembic/runtime/migration.py", line 31, in <module>
from .. import ddl
File "/usr/local/lib/python3.12/site-packages/alembic/ddl/__init__.py", line 1, in <module>
from . import mssql
File "/usr/local/lib/python3.12/site-packages/alembic/ddl/mssql.py", line 20, in <module>
from .base import AddColumn
File "/usr/local/lib/python3.12/site-packages/alembic/ddl/base.py", line 39, in <module>
_ServerDefaultType = Union[FetchedValue, str, TextClause, ColumnElement[Any]]
~~~~~~~~~~~~~^^^^^
TypeError: type 'ColumnElement' is not subscriptable"
Describe the bug
Expected behavior
Unable to run alembic migrations
To Reproduce
Please try to provide a Minimal, Complete, and Verifiable example, with the migration script and/or the SQLAlchemy tables or models involved.
See also Reporting Bugs on the website.
Insert code here
Copy error here. Please include the full stack trace.
Versions.
Additional context
Have a nice day!