Add foreign key constraint from table 'idea_student' to table 'program' (#153)
Fixes #66 Reviewed-on: #153 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:
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;
|
Loading…
x
Reference in New Issue
Block a user