Add Cascade delete to event_data

This commit is contained in:
Mohamed L 2024-06-05 10:39:04 +02:00
parent 7a75639dd3
commit 4b749d2880
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE
event_data
ADD
CONSTRAINT fk_website_event FOREIGN KEY (website_event_id) REFERENCES website_event(event_id) ON DELETE CASCADE;