#1025 - Error on rename of './database/#sql-2e0f_1254ba7' to './database/table' (errno: 150)

后端 未结 7 1368
星月不相逢
星月不相逢 2020-12-12 14:34

So I am trying to add a primary key to one of the tables in my database. Right now it has a primary key like this:

PRIMARY KEY (user_id, round_number)
         


        
7条回答
  •  感情败类
    2020-12-12 15:13

    I had this problem, it is for foreign-key

    Click on the Relation View (like the image below) then find name of the field you are going to remove it, and under the Foreign key constraint (INNODB) column, just put the select to nothing! Means no foreign-key

    Hope that works!

提交回复
热议问题