CREATE SEQUENCE public.table_id_seq INCREMENT 1 START 1000; ALTER TABLE public.table ALTER COLUMN id SET DEFAULT nextval(‘table_id_seq’) ALTER SEQUENCE public.table_id_seq OWNER TO table.id; COMMIT;
CREATE SEQUENCE public.table_id_seq INCREMENT 1 START 1000; ALTER TABLE public.table ALTER COLUMN id SET DEFAULT nextval(‘table_id_seq’) ALTER SEQUENCE public.table_id_seq OWNER TO table.id; COMMIT;