Changes between Version 6 and Version 7 of ddlScript.sql


Ignore:
Timestamp:
08/24/26 16:23:44 (13 days ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ddlScript.sql

    v6 v7  
    22
    33 
     4
    45-- Delete tables if they exist
    56DROP TABLE IF EXISTS NEED_APPROVAL CASCADE;
     
    119120    link VARCHAR(500),
    120121    user_id INTEGER NOT NULL,
    121     story_id INTEGER NOT NULL,
     122    story_id INTEGER,
    122123    notification_created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
    123124    FOREIGN KEY (user_id) REFERENCES USERS(user_id)
     
    125126        ON UPDATE CASCADE,
    126127    FOREIGN KEY (story_id) REFERENCES STORY(story_id)
    127         ON DELETE CASCADE
     128        ON DELETE SET NULL
    128129        ON UPDATE CASCADE
    129130);