invidious-experimenting/config/sql/playlist_videos.sql

20 lines
404 B
MySQL
Raw Normal View History

2019-08-06 05:19:13 +05:30
-- Table: public.playlist_videos
-- DROP TABLE public.playlist_videos;
2021-01-17 07:14:31 +05:30
CREATE TABLE IF NOT EXISTS playlist_videos
2019-08-06 05:19:13 +05:30
(
title text,
id text,
author text,
ucid text,
length_seconds integer,
published timestamptz,
plid text references playlists(id),
index int8,
live_now boolean,
PRIMARY KEY (index,plid)
);
2021-01-17 07:14:31 +05:30
GRANT ALL ON TABLE public.playlist_videos TO current_user;