Last active
December 26, 2015 09:29
-
-
Save fernyb/7130154 to your computer and use it in GitHub Desktop.
Reset Postgres Counter
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
skatr_development=# \d spots | |
Table "public.spots" | |
Column | Type | Modifiers | |
-------------+-----------------------------+---------------------------------------------------- | |
id | integer | not null default nextval('spots_id_seq'::regclass) | |
ALTER SEQUENCE spots_id_seq RESTART WITH 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment