From 1e5c302cf6cbf549e86c1fcd15ab6de50430f8f3 Mon Sep 17 00:00:00 2001 From: Jeremy Richard <githubarj@cardiff.ac.uk> Date: Thu, 12 Dec 2024 00:54:56 +0000 Subject: [PATCH] added the images in the posts so the posts look good and removed redundant uploads file --- src/main/resources/data.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/data.sql b/src/main/resources/data.sql index a142a33..439ca31 100644 --- a/src/main/resources/data.sql +++ b/src/main/resources/data.sql @@ -84,9 +84,9 @@ VALUES (1, 1); -- Insert posts INSERT INTO feed (post_image_url, post_title, post_description, post_time, user_id) VALUES - ('https://example.com/image1.jpg', 'Post 1', 'Description for post 1', '2024-12-07', 1), - ('https://example.com/image2.jpg', 'Post 2', 'Description for post 2', '2024-12-07', 2), - ('https://example.com/image3.jpg', 'Post 3', 'Description for post 3', '2024-12-07', 3); + ('uploads/36b2c38d-c9d5-4e14-a433-895a565d3abf_steve-johnson-D7AuHpLxLPA-unsplash.jpg', 'Post 1', 'Description for post 1', '2024-12-07', 1), + ('uploads/5720f047-a3ca-4d4e-ab20-343aae7cc485_premium_photo-1733514691627-e62171fc052c.avif', 'Post 2', 'Description for post 2', '2024-12-07', 2), + ('uploads/d0753820-30b3-429c-92c4-d82c910ba083_nicolas-jehly-0UU9-_1EMvM-unsplash.jpg', 'Post 3', 'Description for post 3', '2024-12-07', 3); -- Insert tags INSERT INTO tags (tag_name) VALUES -- GitLab