mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 14:36:24 -04:00
Store session_ids in separate table
This commit is contained in:
parent
8bbf351d04
commit
3646395f1d
4 changed files with 58 additions and 25 deletions
24
config/sql/session_ids.sql
Normal file
24
config/sql/session_ids.sql
Normal file
|
@ -0,0 +1,24 @@
|
|||
-- Table: public.session_ids
|
||||
|
||||
-- DROP TABLE public.session_ids;
|
||||
|
||||
CREATE TABLE public.session_ids
|
||||
(
|
||||
id text NOT NULL,
|
||||
email text,
|
||||
issued timestamp with time zone,
|
||||
CONSTRAINT session_ids_pkey PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
GRANT ALL ON TABLE public.channel_videos TO kemal;
|
||||
|
||||
-- Index: public.session_ids_id_idx
|
||||
|
||||
-- DROP INDEX public.session_ids_id_idx;
|
||||
|
||||
CREATE INDEX session_ids_id_idx
|
||||
ON public.session_ids
|
||||
USING btree
|
||||
(id COLLATE pg_catalog."default");
|
||||
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
CREATE TABLE public.users
|
||||
(
|
||||
id text[] NOT NULL,
|
||||
updated timestamp with time zone,
|
||||
notifications text[],
|
||||
subscriptions text[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue