Update change index for channel_videos and add index for nonces

このコミットが含まれているのは:
Omar Roth 2019-02-11 10:59:17 -06:00
コミット 52cad8d6da
2個のファイルの変更14行の追加6行の削除

ファイルの表示

@ -31,6 +31,6 @@ CREATE INDEX channel_videos_published_idx
CREATE INDEX channel_videos_ucid_idx
ON public.channel_videos
USING hash
USING btree
(ucid COLLATE pg_catalog."default");

ファイルの表示

@ -5,10 +5,18 @@
CREATE TABLE public.nonces
(
nonce text,
expire timestamp with time zone
)
WITH (
OIDS=FALSE
expire timestamp with time zone,
CONSTRAINT nonces_id_key UNIQUE (nonce)
);
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");