From: Mike Bayer Date: Thu, 10 Dec 2015 17:15:23 +0000 (-0500) Subject: - existing_server_default is not used to drop the previous X-Git-Tag: rel_0_8_4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8e2c4f27a23efda97f43a6994bfa7f039e53aa;p=thirdparty%2Fsqlalchemy%2Falembic.git - existing_server_default is not used to drop the previous schema type constraint; existing_type is. I haven't checked to see if this changed at some point but that's what the source code right now says. --- diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index 29f749e5..839c2da2 100644 --- a/alembic/operations/ops.py +++ b/alembic/operations/ops.py @@ -1345,9 +1345,9 @@ class AlterColumnOp(AlterTableOp): and :class:`~sqlalchemy.types.Enum` may also add or drop constraints which accompany those types on backends that don't support them natively. - The ``existing_server_default`` argument is - used in this case as well to remove a previous - constraint. + The ``existing_type`` argument is + used in this case to identify and remove a previous + constraint that was bound to the type object. :param table_name: string name of the target table. :param column_name: string name of the target column,