DataGrip is creating index instead of foreign key
已回答
Hello. I have a problem. DataGrip creates index instead of foreign key. When I type:
alter table UrzWkl
add constraint UrzWkl_Urzadzenie_ID_Urzadzenia_fk
foreign key (ID_Urzadzenia) references Urzadzenie (ID_Urzadzenia);
then the program creates the index. The index itself has the following code.
-- auto-generated definition
create index UrzWkl_Urzadzenie_ID_Urzadzenia_fk
on UrzWkl (ID_Urzadzenia);
I have no idea what i'm doing wrong. Thank you in advance for your help.
Here is video description of my problem:
https://vimeo.com/346873849
请先登录再写评论。
@Paweleq1994,
Could you specify DataGrip version, MySQL server version you are on, engine and DDL for tables?
When I was trying to reproduce the issue I got:
That led me to the stack overflow discussion.
Any news here?