invidious-experimenting/config/sql/channels.sql

26 lines
520 B
MySQL
Raw Normal View History

2018-03-25 09:14:17 +05:30
-- Table: public.channels
-- DROP TABLE public.channels;
2021-01-17 07:14:31 +05:30
CREATE TABLE IF NOT EXISTS public.channels
2018-03-25 09:14:17 +05:30
(
2018-11-02 20:16:45 +05:30
id text NOT NULL,
author text,
updated timestamp with time zone,
2019-02-09 21:48:24 +05:30
deleted boolean,
2019-03-04 08:10:24 +05:30
subscribed timestamp with time zone,
2018-11-02 20:16:45 +05:30
CONSTRAINT channels_id_key UNIQUE (id)
);
2018-03-25 09:14:17 +05:30
2021-01-17 07:14:31 +05:30
GRANT ALL ON TABLE public.channels TO current_user;
2018-03-30 08:11:05 +05:30
2018-11-02 20:16:45 +05:30
-- Index: public.channels_id_idx
2018-03-30 08:11:05 +05:30
-- DROP INDEX public.channels_id_idx;
2021-01-17 07:14:31 +05:30
CREATE INDEX IF NOT EXISTS channels_id_idx
2018-11-02 20:16:45 +05:30
ON public.channels
USING btree
(id COLLATE pg_catalog."default");