Ticket #5242: syncdb.patch
File syncdb.patch, 833 bytes (added by , 17 years ago) |
---|
-
core/management/commands/syncdb.py
33 33 34 34 # Get a list of all existing database tables, 35 35 # so we know what needs to be added. 36 table_list = table_list()37 36 if connection.features.uses_case_insensitive_names: 38 table_name_converter = str.upper37 table_name_converter = lambda x: x.upper() 39 38 else: 40 39 table_name_converter = lambda x: x 40 table_list = [table_name_converter(table_name) for table_name in table_list()] 41 41 42 42 # Get a list of already installed *models* so that references work right. 43 43 seen_models = installed_models(table_list)