diff options
| author | Omar Roth <omarroth@hotmail.com> | 2017-11-29 21:49:26 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2017-11-29 21:49:26 -0600 |
| commit | 8d6de7deba21375e71a7f9e93e140b02bb446f1b (patch) | |
| tree | 4457142c4cdf5811a191c9ab2c8e99974b4f3d96 /invidious.sql | |
| parent | 383ed8b20986fcf1fbd120dba2db94697eecfe3a (diff) | |
| download | invidious-8d6de7deba21375e71a7f9e93e140b02bb446f1b.tar.gz invidious-8d6de7deba21375e71a7f9e93e140b02bb446f1b.tar.bz2 invidious-8d6de7deba21375e71a7f9e93e140b02bb446f1b.zip | |
Add primitive postgres support
Diffstat (limited to 'invidious.sql')
| -rw-r--r-- | invidious.sql | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/invidious.sql b/invidious.sql new file mode 100644 index 00000000..5585bd89 --- /dev/null +++ b/invidious.sql @@ -0,0 +1,36 @@ +-- Table: public.invidious + +-- DROP TABLE public.invidious; + +CREATE TABLE public.invidious +( + last_updated timestamp with time zone, + video_id text COLLATE pg_catalog."default" NOT NULL, + video_info text COLLATE pg_catalog."default", + video_html text COLLATE pg_catalog."default", + views bigint, + likes integer, + dislikes integer, + rating double precision, + CONSTRAINT invidious_pkey PRIMARY KEY (video_id) +) +WITH ( + OIDS = FALSE +) +TABLESPACE pg_default; + +ALTER TABLE public.invidious + OWNER to omar; + +GRANT ALL ON TABLE public.invidious TO kemal; + +GRANT ALL ON TABLE public.invidious TO omar; + +-- Index: invidious_video_id_idx + +-- DROP INDEX public.invidious_video_id_idx; + +CREATE INDEX invidious_video_id_idx + ON public.invidious USING btree + (video_id COLLATE pg_catalog."default") + TABLESPACE pg_default; |
