Changes between Version 2 and Version 3 of WriterPublishesStory


Ignore:
Timestamp:
08/24/26 15:59:38 (13 days ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WriterPublishesStory

    v2 v3  
    88**2.**  The system displays the current story details and status.
    99{{{#!sql
    10 SELECT s.story_id, s.short_description, st.status
    11 FROM STORY s
    12 JOIN STATUS st ON s.story_id = st.story_id
    13 WHERE s.user_id = 2 AND st.status = 'draft';
     10SELECT story_id, short_description, status
     11FROM STORY
     12WHERE user_id = 2 AND status = 'draft';
    1413}}}
    1514
     
    1817**4.** The system updates the story status from draft to published.
    1918{{{#!sql
    20 UPDATE STATUS
     19UPDATE STORY
    2120SET status = 'published'
    2221WHERE story_id = 1 AND status = 'draft';
     
    2625
    2726{{{#!sql
    28 INSERT INTO NOTIFICATION (content, is_read, created_at)
    29 VALUES ('Elena published a new story "The Chronicles of Eldoria"', FALSE, CURRENT_TIMESTAMP);
     27INSERT INTO NOTIFICATION (notification_content, content_type, is_read, user_id, story_id, notification_created_at)
     28VALUES ('Elena published a new story "The Chronicles of Eldoria"', 'new_story', FALSE, 5, 1, CURRENT_TIMESTAMP);
    3029}}}
    3130