tsk-271: Updated migration
This commit is contained in:
1 file changed
+4
-2
@@ -3,12 +3,14 @@ CREATE TABLE IF NOT EXISTS "playbackQueue" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
name TEXT NOT NULL,
|
||||
device_type TEXT CHECK (device_type IN ('BROWSER', 'MOBILE')),
|
||||
user_id UUID NOT NULL
|
||||
user_id UUID NOT NULL,
|
||||
date_created timestamptz DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "playbackQueueItem" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
queue_index INT NOT NULL,
|
||||
song_id UUID NOT NULL,
|
||||
playback_queue_id UUID NOT NULL
|
||||
playback_queue_id UUID NOT NULL,
|
||||
date_created timestamptz DEFAULT now(),
|
||||
);
|
||||
Reference in new issue
Block a user