I am trying to create a foreign key between ticket
table of task_flow
database with user
table of sardia
database:
- user_id int(10) UNSIGNED No
- Id int(10) UNSIGNED No
I created the query
ALTER TABLE ticket
ADD CONSTRAINT fk_u_id
FOREIGN KEY (user_id) REFERENCES sardia.user(Id);
"Foreign key constraint is incorrectly formed" Can somebody help how I can achieve this?