task/3382: Harmonisera tabellnamn #6
@ -521,6 +521,18 @@ alter table `user_program`
|
|||||||
|
|
||||||
alter table `user_program`
|
alter table `user_program`
|
||||||
add constraint fk_user_program_user_id
|
add constraint fk_user_program_user_id
|
||||||
|
foreign key (user_id)
|
||||||
|
references user(id)
|
||||||
|
on delete cascade
|
||||||
|
on update cascade;
|
||||||
|
|
||||||
|
-- table note
|
||||||
|
|
||||||
|
alter table `note` drop foreign key `note_ibfk_1`;
|
||||||
|
alter table `note` drop key `user_id`;
|
||||||
|
|
||||||
|
alter table `note`
|
||||||
|
add constraint fk_note_user_id
|
||||||
foreign key (user_id)
|
foreign key (user_id)
|
||||||
references user(id)
|
references user(id)
|
||||||
on delete cascade
|
on delete cascade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user