mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
506 B
21 lines
506 B
-- +migrate Up |
|
CREATE TABLE refresh_token ( |
|
id bigint NOT NULL, |
|
payload_hash bytea, |
|
user_id text, |
|
client_id text |
|
); |
|
|
|
CREATE SEQUENCE refresh_token_id_seq |
|
START WITH 1 |
|
INCREMENT BY 1 |
|
NO MINVALUE |
|
NO MAXVALUE |
|
CACHE 1; |
|
|
|
ALTER SEQUENCE refresh_token_id_seq OWNED BY refresh_token.id; |
|
|
|
ALTER TABLE ONLY refresh_token ALTER COLUMN id SET DEFAULT nextval('refresh_token_id_seq'::regclass); |
|
|
|
ALTER TABLE ONLY refresh_token |
|
ADD CONSTRAINT refresh_token_pkey PRIMARY KEY (id);
|
|
|