select * from pmsystem.acceptance
select MAX(acceptance_id ) from pmsystem.acceptance
CREATE SEQUENCE pmsystem.acceptance_acceptance_id_seq
INCREMENT 1
START 10319
MINVALUE 1
MAXVALUE 9223372036854775807
CACHE 1;
ALTER SEQUENCE pmsystem.acceptance_acceptance_id_seq
OWNER TO postgres;
ALTER table pmsystem.acceptance alter column acceptance_id set DEFAULT nextval('pmsystem.acceptance_acceptance_id_seq');