invidious-copy-2023-06-08/config/sql/nonces.sql

23 lines
437 B
MySQL
Raw Permalink Normal View History

-- Table: public.nonces
-- DROP TABLE public.nonces;
2021-01-17 01:44:31 +00:00
CREATE TABLE IF NOT EXISTS public.nonces
(
2018-11-20 00:41:11 +00:00
nonce text,
expire timestamp with time zone,
CONSTRAINT nonces_id_key UNIQUE (nonce)
);
2021-01-17 01:44:31 +00:00
GRANT ALL ON TABLE public.nonces TO current_user;
-- Index: public.nonces_nonce_idx
-- DROP INDEX public.nonces_nonce_idx;
2021-01-17 01:44:31 +00:00
CREATE INDEX IF NOT EXISTS nonces_nonce_idx
ON public.nonces
USING btree
(nonce COLLATE pg_catalog."default");