I have a database contains
sholarshipstable for the scholarships,scholarshipstopicstable for the topicsscholarship_topicfor linking sholarships with topics
the scholarship_topic was contains UNIQUE columns that I dont need it so I deleted the INDEXES
after that the table delete it self
I recreated it with this order:
CREATE TABLE scholarship_topic (
`id` INT(11) NULL PRIMARY KEY AUTO_INCREMENT,
`post_id` INT(11) NULL ,
`topic_id` INT(11) NULL
) ENGINE = InnoDB;
NOTE : I dont have foreign key in the order the erorr:
#1005 - Can't create table
scholarship_topic(errno: 150 "Foreign key constraint is incorrectly formed") (Details…)
I dont have a foriegn key, is it possible ?