Re: Django Migration gives an error with OneToOneField

2020-02-23 Thread maninder singh Kumar
Here's something else I found, the second time around I run django migrations, the model does get created in the mysql db. Once it has popped in the error I guess it has already created a database table with the unique field constraint. However I then have to fake initial to get the

Re: Django Migration gives an error with OneToOneField

2020-02-23 Thread Integr@te System
Hi, Would u consider any relative details with result!? Or try some cmd to more status: https://docs.djangoproject.com/en/2.2/topics/migrations/ On Mon, Feb 24, 2020, 00:43 maninder singh Kumar wrote: > I am working on an application with two databases and two different > dbRouters. On

Django Migration gives an error with OneToOneField

2020-02-23 Thread maninder singh Kumar
I am working on an application with two databases and two different dbRouters. On migrating a model with a OneToOneField I get the following error : django.db.utils.OperationalError: (1824, "Failed to open the referenced table 'auth_user'") The auth dbRouter is for the [auth, sessions,