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
CREATE TABLE public.gapless_sequence ( | |
sequence_schema TEXT, | |
sequence_name TEXT, | |
last_value BIGINT DEFAULT 0, | |
step INTEGER DEFAULT 1 | |
); | |
ALTER TABLE public.gapless_sequence | |
ADD CONSTRAINT gapless_sequence_pk PRIMARY KEY (sequence_schema, sequence_name); |