Created
August 17, 2020 11:56
-
-
Save stuhli/d9b3c2e3e2041a95e9e7f89d6fe8c7cc to your computer and use it in GitHub Desktop.
Django - Reset primary key ID (SQL sequence combined with PostgreSQL database)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) $ python manage.py sqlsequencereset <APP_ANME> | python manage.py dbshell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment