Ticket #5242: syncdb.patch

File syncdb.patch, 833 bytes (added by Filip Wasilewski <filip.wasilewski@…>, 17 years ago)
  • core/management/commands/syncdb.py

     
    3333
    3434        # Get a list of all existing database tables,
    3535        # so we know what needs to be added.
    36         table_list = table_list()
    3736        if connection.features.uses_case_insensitive_names:
    38             table_name_converter = str.upper
     37            table_name_converter = lambda x: x.upper()
    3938        else:
    4039            table_name_converter = lambda x: x
     40        table_list = [table_name_converter(table_name) for table_name in table_list()]
    4141
    4242        # Get a list of already installed *models* so that references work right.
    4343        seen_models = installed_models(table_list)
Back to Top