mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix videos_order type.
This commit is contained in:
parent
1d08fda665
commit
c8f7e52820
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ CREATE INDEX IF NOT EXISTS playlist_videos_uploader_id_idx ON playlist_videos (u
|
||||||
CREATE TABLE IF NOT EXISTS playlists_videos_ids (
|
CREATE TABLE IF NOT EXISTS playlists_videos_ids (
|
||||||
playlist_id INT8 NOT NULL,
|
playlist_id INT8 NOT NULL,
|
||||||
videos_id VARCHAR(11) NOT NULL,
|
videos_id VARCHAR(11) NOT NULL,
|
||||||
videos_order INT8 NOT NULL,
|
videos_order INT4 NOT NULL,
|
||||||
CONSTRAINT playlists_videos_ids_pkey PRIMARY KEY (playlist_id, videos_order),
|
CONSTRAINT playlists_videos_ids_pkey PRIMARY KEY (playlist_id, videos_order),
|
||||||
CONSTRAINT fk_playlists_videos_video_id_playlist_video FOREIGN KEY (videos_id) REFERENCES playlist_videos(id),
|
CONSTRAINT fk_playlists_videos_video_id_playlist_video FOREIGN KEY (videos_id) REFERENCES playlist_videos(id),
|
||||||
CONSTRAINT fk_playlists_videos_playlist_id_playlist FOREIGN KEY (playlist_id) REFERENCES playlists(id)
|
CONSTRAINT fk_playlists_videos_playlist_id_playlist FOREIGN KEY (playlist_id) REFERENCES playlists(id)
|
||||||
|
|
Loading…
Reference in a new issue