diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-08-05 18:49:13 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-10-15 21:17:14 -0400 |
| commit | be055d9dcb31fe64cb682d50dc70101484605741 (patch) | |
| tree | 5e0f15a15a5ceabcff4b5cbc3046bcfb2e0771f4 /config/sql | |
| parent | 1e34a61911bf786497793b6fe3f309a411a32aae (diff) | |
| download | invidious-be055d9dcb31fe64cb682d50dc70101484605741.tar.gz invidious-be055d9dcb31fe64cb682d50dc70101484605741.tar.bz2 invidious-be055d9dcb31fe64cb682d50dc70101484605741.zip | |
Add support for custom playlists
Diffstat (limited to 'config/sql')
| -rw-r--r-- | config/sql/playlist_videos.sql | 19 | ||||
| -rw-r--r-- | config/sql/playlists.sql | 18 | ||||
| -rw-r--r-- | config/sql/privacy.sql | 10 |
3 files changed, 47 insertions, 0 deletions
diff --git a/config/sql/playlist_videos.sql b/config/sql/playlist_videos.sql new file mode 100644 index 00000000..b2b8d5c4 --- /dev/null +++ b/config/sql/playlist_videos.sql @@ -0,0 +1,19 @@ +-- Table: public.playlist_videos + +-- DROP TABLE public.playlist_videos; + +CREATE TABLE playlist_videos +( + 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) +); + +GRANT ALL ON TABLE public.playlist_videos TO kemal; diff --git a/config/sql/playlists.sql b/config/sql/playlists.sql new file mode 100644 index 00000000..46ff30ec --- /dev/null +++ b/config/sql/playlists.sql @@ -0,0 +1,18 @@ +-- Table: public.playlists + +-- DROP TABLE public.playlists; + +CREATE TABLE public.playlists +( + title text, + id text primary key, + author text, + description text, + video_count integer, + created timestamptz, + updated timestamptz, + privacy privacy, + index int8[] +); + +GRANT ALL ON public.playlists TO kemal; diff --git a/config/sql/privacy.sql b/config/sql/privacy.sql new file mode 100644 index 00000000..4356813e --- /dev/null +++ b/config/sql/privacy.sql @@ -0,0 +1,10 @@ +-- Type: public.privacy + +-- DROP TYPE public.privacy; + +CREATE TYPE public.privacy AS ENUM +( + 'Public', + 'Unlisted', + 'Private' +); |
