Commits

bbinet committed d8c7ffc

do not fail when compare_server_default compares None values

  • Participants
  • Parent commits 107c984

Comments (0)

Files changed (1)

alembic/ddl/postgresql.py

 
         conn_col_default = inspector_column['default']
 
+        if None in (conn_col_default, rendered_metadata_default):
+            return conn_col_default != rendered_metadata_default
+
         if metadata_column.type._type_affinity is not sqltypes.String:
             rendered_metadata_default = re.sub(r"^'|'$", "", rendered_metadata_default)