Add foreign key constraint from table 'idea_student' to table 'program' ()

Fixes 

Reviewed-on: 
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se>
Co-authored-by: Tom Zhao <tom.zhao@dsv.su.se>
Co-committed-by: Tom Zhao <tom.zhao@dsv.su.se>
This commit is contained in:
Tom Zhao 2025-04-25 10:59:23 +02:00 committed by Andreas Svanberg
parent d2e5043c95
commit 3477c8f0c5

@ -0,0 +1,4 @@
alter table idea_student
add constraint fk_idea_student_program_id
foreign key (program_id) references program (id)
on update cascade on delete set null;