mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Update change index for channel_videos and add index for nonces
This commit is contained in:
parent
1590393fcc
commit
52cad8d6da
2 changed files with 14 additions and 6 deletions
|
@ -31,6 +31,6 @@ CREATE INDEX channel_videos_published_idx
|
||||||
|
|
||||||
CREATE INDEX channel_videos_ucid_idx
|
CREATE INDEX channel_videos_ucid_idx
|
||||||
ON public.channel_videos
|
ON public.channel_videos
|
||||||
USING hash
|
USING btree
|
||||||
(ucid COLLATE pg_catalog."default");
|
(ucid COLLATE pg_catalog."default");
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,18 @@
|
||||||
CREATE TABLE public.nonces
|
CREATE TABLE public.nonces
|
||||||
(
|
(
|
||||||
nonce text,
|
nonce text,
|
||||||
expire timestamp with time zone
|
expire timestamp with time zone,
|
||||||
)
|
CONSTRAINT nonces_id_key UNIQUE (nonce)
|
||||||
WITH (
|
|
||||||
OIDS=FALSE
|
|
||||||
);
|
);
|
||||||
|
|
||||||
GRANT ALL ON TABLE public.nonces TO kemal;
|
GRANT ALL ON TABLE public.nonces TO kemal;
|
||||||
|
|
||||||
|
-- Index: public.nonces_nonce_idx
|
||||||
|
|
||||||
|
-- DROP INDEX public.nonces_nonce_idx;
|
||||||
|
|
||||||
|
CREATE INDEX nonces_nonce_idx
|
||||||
|
ON public.nonces
|
||||||
|
USING btree
|
||||||
|
(nonce COLLATE pg_catalog."default");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue