From 6ca17357dc7f8fd5041f1c269a88e62ce61d90f4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 20 Nov 2026 16:04:52 -0500 Subject: [PATCH] tsk-271: Making migration available in test --- test_migrations/20261120185858_playbackQueue.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_migrations/20261120185858_playbackQueue.sql diff --git a/test_migrations/20261120185858_playbackQueue.sql b/test_migrations/20261120185858_playbackQueue.sql new file mode 100644 index 0000000..bc60bcd --- /dev/null +++ b/test_migrations/20261120185858_playbackQueue.sql @@ -0,0 +1,16 @@ +-- Add migration script here +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, + 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, + date_created timestamptz DEFAULT now() +);