1
0
mirror of https://github.com/iv-org/invidious.git synced 2024-12-25 15:29:27 -05:00
invidious/config/sql/channels.sql

26 lines
520 B
MySQL
Raw Normal View History

2018-03-24 23:44:17 -04:00
-- Table: public.channels
-- DROP TABLE public.channels;
2021-01-16 20:44:31 -05:00
CREATE TABLE IF NOT EXISTS public.channels
2018-03-24 23:44:17 -04:00
(
2018-11-02 10:46:45 -04:00
id text NOT NULL,
author text,
updated timestamp with time zone,
2019-02-09 11:18:24 -05:00
deleted boolean,
2019-03-03 21:40:24 -05:00
subscribed timestamp with time zone,
2018-11-02 10:46:45 -04:00
CONSTRAINT channels_id_key UNIQUE (id)
);
2018-03-24 23:44:17 -04:00
2021-01-16 20:44:31 -05:00
GRANT ALL ON TABLE public.channels TO current_user;
2018-03-29 22:41:05 -04:00
2018-11-02 10:46:45 -04:00
-- Index: public.channels_id_idx
2018-03-29 22:41:05 -04:00
-- DROP INDEX public.channels_id_idx;
2021-01-16 20:44:31 -05:00
CREATE INDEX IF NOT EXISTS channels_id_idx
2018-11-02 10:46:45 -04:00
ON public.channels
USING btree
(id COLLATE pg_catalog."default");