Use seperate table for videos pulled from RSS

This commit is contained in:
Omar Roth
2018-03-28 22:29:54 -05:00
parent e89f15a65c
commit 239a6c892c
6 changed files with 81 additions and 54 deletions

View File

@ -5,9 +5,8 @@
CREATE TABLE public.channels
(
id text COLLATE pg_catalog."default" NOT NULL,
rss text COLLATE pg_catalog."default",
updated timestamp with time zone,
author text COLLATE pg_catalog."default"
author text COLLATE pg_catalog."default",
updated timestamp with time zone
)
WITH (
OIDS = FALSE
@ -15,12 +14,3 @@ WITH (
TABLESPACE pg_default;
GRANT ALL ON TABLE public.channels TO kemal;
-- Index: channel_id_idx
-- DROP INDEX public.channel_id_idx;
CREATE UNIQUE INDEX channel_id_idx
ON public.channels USING btree
(id COLLATE pg_catalog."default")
TABLESPACE pg_default;