]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
fix: Add TextClause to alter_column's server_default fields. 1577/head
authorDanCardin <ddcardin@gmail.com>
Fri, 6 Dec 2024 20:26:17 +0000 (15:26 -0500)
committerDanCardin <ddcardin@gmail.com>
Fri, 6 Dec 2024 20:26:17 +0000 (15:26 -0500)
alembic/op.pyi

index 920444696ecf511e99216049072c8d96025f1610..de97e3f2d4a38627a070f0bb35ca4fc18ce4228e 100644 (file)
@@ -152,7 +152,7 @@ def alter_column(
     type_: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None,
     existing_type: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None,
     existing_server_default: Union[
-        str, bool, Identity, Computed, None
+        str, bool, Identity, Computed, TextClause, None
     ] = False,
     existing_nullable: Optional[bool] = None,
     existing_comment: Optional[str] = None,