def patch_migrate():

    # this patch is needed to ensure that recreate_table() doesn't drop
    # existing unique constraints of the table when creating a new one
    helper_cls = sqlite.SQLiteHelper
    helper_cls.recreate_table = _recreate_table
    helper_cls._get_unique_constraints = _get_unique_constraints

    # this patch is needed to be able to drop existing unique constraints
    constraint_cls = sqlite.SQLiteConstraintDropper
    constraint_cls.visit_migrate_unique_constraint = \
        _visit_migrate_unique_constraint
    constraint_cls.__bases__ = (ansisql.ANSIColumnDropper,
                                sqlite.SQLiteConstraintGenerator)
Returns True if self and other are the same mathematical entities
dataset/ETHPy150Open openstack/rack/rack/openstack/common/db/sqlalchemy/migration.py/patch_migrate--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/geometry/line.py/Line.equals