Closed SanketSKasarTP closed 4 years ago
Similar issue on Django 2.2 and Postgres 10.10 caused by migration 0003
:
Applying django_rest_multitokenauth.0003_pk_migration...Traceback (most recent call last):
File "/home/snypy/apps/venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.InvalidTableDefinition: multiple primary keys for table "django_rest_multitokenauth_multitoken" are not allowed
I have encountered this multiple times while applying migrations with django 2.2. Seems to be an issue with changing the primary key of a table. Can create a pull request with the fixes that I use, but I am not sure if its my system's issue or the model's issue.