Hello.

I'm using postgresql 12 and psycopg2, Python 3.7, Django 3.0.2 (actual 
stable branch)

I declared first my Model with a BigAutoField as Primary_key, later i 
menchend that the ID field is unique, the id's are predefined and unique.
I tried to change the id to a BigIntegerField, done a migration, a look at 
the database nothing has changes, the id is still a autogenerated sequence 
(postgresql uses sequences as primary key).
the "nexval(...seq)" is in it too.
I does the manually: "ALTER TABLE xyz ALTER id DROP DEFAULT" and that 
worked. Now the id (=primary-key) key is as wished a normal BigIntegerField.

Have I done something wrong?

Bye, Christian

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8ce2cb19-c852-413b-87fa-d196bb55cbd9%40googlegroups.com.

Reply via email to