  
          # Get a list of all existing database tables,
          # so we know what needs to be added.
          table_list = table_list()
          if backend.uses_case_insensitive_names:
              table_name_converter = str.upper
          else:
              table_name_converter = lambda x: x
  
          # Get a list of already installed *models* so that references work right.
 
</s> remove     if backend.uses_case_insensitive_names:
 </s> add     if connection.features.uses_case_insensitive_names: </s> remove         needs_datetime_string_cast = backend.needs_datetime_string_cast
 </s> add         needs_datetime_string_cast = connection.features.needs_datetime_string_cast </s> remove     from django.db import backend, models
 </s> add     from django.db import connection, models </s> remove     if backend.uses_case_insensitive_names:
 </s> add     if connection.features.uses_case_insensitive_names:
        if connection.features.uses_case_insensitive_names:
  
          # Get a list of all existing database tables,
          # so we know what needs to be added.
          table_list = table_list()
        if connection.features.uses_case_insensitive_names:
              table_name_converter = str.upper
          else:
              table_name_converter = lambda x: x
  
          # Get a list of already installed *models* so that references work right.
keep keep keep keep replace keep keep keep keep keep
 Implemented BaseDatabaseFeatures and changed all code to access it -- connection.features.foo instead of backend.foo

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5974 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/core/management/commands/syncdb.py