Ticket #979 (new defect)
Changing from ManyToMany to a CharField seeks to drop non existant tablename
|Reported by:||Zenobius Jiricek <zenobius.jiricek@…>||Owned by:||andrew|
I had a model with a ManyToMany? field that pointed at cms.Placholder.
Then I decided to change it to a CharField? that is based on a generator class providing options built from a qury of cms.Placeholder.objects.all().values('slot').distinct().
However when I attempt to perform the migration, it complains about a non existant tablename :
django.db.utils.DatabaseError: no such table: cmsplugin_embedpagesplugin_placeholders
Looking at the migration I can see that it has mis-calculated the table name to drop.
Notice that in migration 2, I simply had to either, manually change the table name or ignore the exception.
I've attached the models.py, and both the migrations.
Changed 3 years ago by Zenobius Jiricek <zenobius.jiricek@…>
- Attachment 0002_auto__add_field_embedpagesplugin_placeholders.py added