Created
May 2, 2018 10:33
-
-
Save aypn0s/8ff9386e0aeca6a112faaba61afe2528 to your computer and use it in GitHub Desktop.
Change postgresql id sequence
This file contains hidden or 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
| select * from users_id_seq; | |
| alter sequence users_id_seq restart with 1000; | |
| Truncate: | |
| truncate bad_users restart identity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment