Created
May 28, 2018 07:41
-
-
Save pierreboissinot/e33cf6a9b6aa9c034079c16bdd5bffed to your computer and use it in GitHub Desktop.
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
-- when the database/ORM try to insert a record with an existing id/PK | |
ALTER SEQUENCE sequence_name RESTART WITH your_next_free_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment