Generate forward operations for changing/creating SQL item dependencies.

        Dependencies are only in-memory and should be reflecting database dependencies, so
        changing them in SQL config does not alter database. Such actions are persisted in separate
        type operation - `AlterSQLState`.

        Args:
            dep_changed_keys (list): Data about keys, that have their dependencies changed.
                List of tuples (key, removed depndencies, added_dependencies).

def _generate_altered_sql_dependencies(self, dep_changed_keys):
        """
        Generate forward operations for changing/creating SQL item dependencies.

        Dependencies are only in-memory and should be reflecting database dependencies, so
        changing them in SQL config does not alter database. Such actions are persisted in separate
        type operation - `AlterSQLState`.

        Args:
            dep_changed_keys (list): Data about keys, that have their dependencies changed.
                List of tuples (key, removed depndencies, added_dependencies).
        """
        for key, removed_deps, added_deps in dep_changed_keys:
            app_label, sql_name = key
            operation = AlterSQLState(sql_name, add_dependencies=tuple(added_deps),
                                      remove_dependencies=tuple(removed_deps))
            sql_deps = [key]
            self.add_sql_operation(app_label, sql_name, operation, sql_deps)