invidious/config/sql/session_ids.sql

24 lines
490 B
MySQL
Raw Permalink Normal View History

2019-02-11 00:03:29 +05:30
-- Table: public.session_ids
-- DROP TABLE public.session_ids;
2021-01-17 07:14:31 +05:30
CREATE TABLE IF NOT EXISTS public.session_ids
2019-02-11 00:03:29 +05:30
(
id text NOT NULL,
email text,
issued timestamp with time zone,
CONSTRAINT session_ids_pkey PRIMARY KEY (id)
);
2021-01-17 07:14:31 +05:30
GRANT ALL ON TABLE public.session_ids TO current_user;
2019-02-11 00:03:29 +05:30
-- Index: public.session_ids_id_idx
-- DROP INDEX public.session_ids_id_idx;
2021-01-17 07:14:31 +05:30
CREATE INDEX IF NOT EXISTS session_ids_id_idx
2019-02-11 00:03:29 +05:30
ON public.session_ids
USING btree
(id COLLATE pg_catalog."default");