aerich/migrate.py
def _add_operator(cls, operator: str, upgrade=True, fk=False):
        """
        add operator,differentiate fk because fk is order limit
        :param operator:
        :param upgrade:
        :param fk_m2m:
        :return:
        """
        if upgrade:
            if fk:
                cls._upgrade_fk_m2m_index_operators.append(operator)
            else:
                cls.upgrade_operators.append(operator)
        else:
            if fk:
                cls._downgrade_fk_m2m_index_operators.append(operator)
            else:
                cls.downgrade_operators.append(operator)

        add operator,differentiate fk because fk is order limit
        :param operator:
        :param upgrade:
        :param fk_m2m:
        :return:
        
add operator,differentiate fk because fk is order limit
add operator differentiate fk because fk is order limit
def _add_operator(cls, operator: str, upgrade=True, fk=False):
        if upgrade:
            if fk:
                cls._upgrade_fk_m2m_index_operators.append(operator)
            else:
                cls.upgrade_operators.append(operator)
        else:
            if fk:
                cls._downgrade_fk_m2m_index_operators.append(operator)
            else:
                cls.downgrade_operators.append(operator)
def _add_operator ( cls , operator : str , upgrade = True , fk = False ) : if upgrade : if fk : cls . _upgrade_fk_m2m_index_operators . append ( operator ) else : cls . upgrade_operators . append ( operator ) else : if fk : cls . _downgrade_fk_m2m_index_operators . append ( operator ) else : cls . downgrade_operators . append ( operator )
add operator,differentiate fk because fk is order limit
add operator differentiate fk because fk is order limit
"""
        add operator,differentiate fk because fk is order limit
        :param operator:
        :param upgrade:
        :param fk_m2m:
        :return:
        """
None
cls
operator
str
None
upgrade
None
fk
fk_m2m
None