﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9116	different caps in application name producing error	Maxim Syabro <syabro@…>	nobody	"I have an application with name localModels and lower_case_table_names mysql variable=1, which said to MySQL automatically convert table name to lowercase.
Let's look in djnago.core.management.commnads.syncdb.py, line 67:
{{{
#!python
if connection.introspection.table_name_converter(model._meta.db_table) in tables:
    continue
}}}
connection.introspection.table_name_converter(model._meta.db_table) = 'localModels_tablename'
in tables we have
(..., 'localmodels_tablename', ...)
so here your condition doesn't work, beacuse 'localModels_tablename'!='localmodels_tablename'.
And we have an exception in manage.py syncdb:
_mysql_exceptions.OperationalError: (1050, ""Table 'localmodels_tablename' already exists"")

So I see at least 2 ways:
1. Generate SQL 'CREATE TABLE `tablename` IF NOT EXIST'
2. Check MySQL's lower_case_table_names variable and change condition on line 67."		new	Database layer (models, ORM)	1.0					Unreviewed	0	0	0	0		
