Have you tried db.rename_table ?
I would start by creating a migration in a new or old application that looks something like this.
class Migration: def forwards(self, orm): db.rename_table('old_vote', 'new_vote') def backwards(self, orm): db.rename_table('new_vote', 'old_vote')
If this does not work, you can move each element in a loop with something like this:
def forwards(self, orm): for old in orm['old.vote'].objects.all():
Note. You must use orm[...] to access any models outside the currently ported application. Otherwise, the standard notation orm.Vote.objects.all() works.
source share