Skip to content

Instantly share code, notes, and snippets.

@alonisser

alonisser/sequence_problem

Last active Aug 29, 2015
Embed
What would you like to do?
Solving django/pg sequence problem after a user model migration to custom user model
http://stackoverflow.com/questions/244243/how-to-reset-postgres-primary-key-sequence-when-it-falls-out-of-sync/13308052#13308052)
http://reinout.vanrees.org/weblog/2011/05/12/sqlite-postgres-django-cms-migrations.html
https://www.vlent.nl/weblog/2011/05/06/integrityerror-duplicate-key-value-violates-unique-constraint/
https://gist.github.com/alonisser/7e931c68665721f0141c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment