2 apps 1 DB, switching migration control from one app to the other

25 views
Skip to first unread message

Jon Subscripted

unread,
Apr 29, 2020, 7:02:43 AM4/29/20
to web...@googlegroups.com
Hi everyone,
I have 2 apps that were using the same DB (lets call them old_app and new_app).

As the old_app created the DB, old_app had the migrations enabled and new_app had the migrations disabled.

Both apps diverged and I would like to do it the other way round. new_app migrations enabled and old_app migrations disabled.

I tried but I do get InternalError: (1050, u"Table 'XXX' already exists").

Which steps should I use to switch migration from old_app to new_app control and prevent this error?

Thanks, Jon.

Libre de virus. www.avast.com

Jon Subscripted

unread,
Apr 29, 2020, 7:16:22 AM4/29/20
to web...@googlegroups.com
Hi all,
I copied the ".table" files from old_app to new_app and I could perform the switch correctly.

Is it a good practice to keep this files in the code repo also?
Thanks, Jon.

Libre de virus. www.avast.com

Reply all
Reply to author
Forward
0 new messages