Skip to content

Commit

Permalink
Update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunop committed Jul 25, 2024
1 parent 5110c58 commit 9bf2097
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion sql/ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ ALTER TABLE public.oauth2_clients OWNER TO postgres;
CREATE TABLE public.oauth2_info (
id integer NOT NULL,
client character varying NOT NULL,
info json[],
info jsonb[],
oauth_user_id character varying NOT NULL,
user_id character varying NOT NULL
);
Expand Down Expand Up @@ -509,6 +509,14 @@ ALTER TABLE ONLY public.oauth2_clients
ADD CONSTRAINT oauth2_clients_pkey PRIMARY KEY (id);


--
-- Name: oauth2_info oauth2_info_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oauth2_info
ADD CONSTRAINT oauth2_info_unique UNIQUE (client, user_id);


--
-- Name: oauth2_tokens oauth2_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
Expand Down
10 changes: 9 additions & 1 deletion sql/oauth2_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SET default_table_access_method = heap;
CREATE TABLE public.oauth2_info (
id integer NOT NULL,
client character varying NOT NULL,
info json[],
info jsonb[],
oauth_user_id character varying NOT NULL,
user_id character varying NOT NULL
);
Expand Down Expand Up @@ -85,6 +85,14 @@ ALTER SEQUENCE public.oauth2_info_id_seq OWNED BY public.oauth2_info.id;
ALTER TABLE ONLY public.oauth2_info ALTER COLUMN id SET DEFAULT nextval('public.oauth2_info_id_seq'::regclass);


--
-- Name: oauth2_info oauth2_info_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oauth2_info
ADD CONSTRAINT oauth2_info_unique UNIQUE (client, user_id);


--
-- PostgreSQL database dump complete
--
Expand Down

0 comments on commit 9bf2097

Please sign in to comment.