PATCH: Fixed error that caused users without a set stream title to be unable to stream

This commit is contained in:
2025-02-12 19:56:31 +00:00
parent 415315b1da
commit df9fb69b7b
3 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -54,7 +54,6 @@ INSERT INTO categories (category_name) VALUES
-- Sample Data for streams
INSERT INTO streams (user_id, title, start_time, num_viewers, category_id) VALUES
(1, 'Epic Gaming Session', '2025-01-25 18:00:00', 150, 1),
(2, 'Live Music Jam', '2025-01-25 20:00:00', 350, 2),
(3, 'Sketching Live', '2025-01-24 15:00:00', 80, 3),
(4, 'Math Made Easy', '2025-01-23 10:00:00', 400, 4);

View File

@@ -11,8 +11,8 @@ CREATE TABLE users
is_live BOOLEAN NOT NULL DEFAULT 0,
bio VARCHAR(1024) DEFAULT 'This user does not have a Bio.',
current_stream_title VARCHAR(100),
current_selected_category_id INTEGER
current_stream_title VARCHAR(100) DEFAULT 'Stream',
current_selected_category_id INTEGER DEFAULT 1
);
SELECT * FROM users;