I’m moving a model to a different app in my project, and I want to keep the same data that I already have. I created a migration with a RunSQL operation that simply renames the table with the new app prefix. However, when I run makemigrations, Django insists on adding a migrations.CreateModel operation for me in the new app. How do I avoid that?
Hi Simon,
Thank you so very much for your assistance.
It was a very simple model, so it had no foreign keys, and I’m relieved that I won’t have to do some manual database operations to get this working.
It has migrated successfully!
Thank you,
Matthew
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/20606f64-15b4-4946-bb3e-65276de63e40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.