  
  from django.conf import settings
  from django.db.backends.base.operations import BaseDatabaseOperations
  from django.utils import timezone
  from django.utils.encoding import force_text
  
  
  class DatabaseOperations(BaseDatabaseOperations):
      compiler_module = "django.db.backends.mysql.compiler"
  
 
</s> remove from django.utils.duration import duration_string
 </s> add from django.utils.duration import duration_microseconds, duration_string </s> remove from django.utils.duration import duration_iso_string, duration_string
 </s> add from django.utils.duration import (
    duration_iso_string, duration_microseconds, duration_string,
) </s> remove         duration = datetime.timedelta(days=123, seconds=123, microseconds=123)
 </s> add         duration = datetime.timedelta(microseconds=8999999999999999)
from django.utils.duration import duration_microseconds
  
  from django.conf import settings
  from django.db.backends.base.operations import BaseDatabaseOperations
  from django.utils import timezone
from django.utils.duration import duration_microseconds
  from django.utils.encoding import force_text
  
  
  class DatabaseOperations(BaseDatabaseOperations):
      compiler_module = "django.db.backends.mysql.compiler"
  
keep keep keep add keep keep keep keep keep keep
 Fixed #28926 -- Fixed loss of precision of big DurationField values on SQLite and MySQL. 
django/db/backends/mysql/operations.py