﻿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
26781	Bug with migrate appears if you try to change the db_table value	lao zzzi	nobody	"Problem appears after renaming db_table, if you try to rename, for example ""Article"" to ""article"" or ""Blog"" to ""blog"" or to ""bLoG"", etc. and migrate this changes to database

Example:

Step 1. Create model:

{{{
class Article (models.Model):
    class Meta():
        db_table=""Article""
    title = models.CharField(max_length=200)
    body = models.TextField()
    date_cr = models.DateTimeField()
}}}


Step 2. make migrations & migrate

Step 3. change the value of db_table from ""Article"" to ""article""

{{{
class Article (models.Model):
    class Meta():
        db_table=""article""
    title = models.CharField(max_length=200)
    body = models.TextField()
    date_cr = models.DateTimeField()
}}}

Step 4. make migrations

Step 5. migrate -- here you'll see errors
.....
django.db.utils.OperationalError: there is already another table or index with this name: article

This error appears any time later, if you try to do something with model and use migrate. Even if you delete the Article model and start ""make migrations & migrate"" you'll see such error.
"	Bug	new	Migrations	1.9	Normal		migrate		Unreviewed	0	0	0	0	0	0
