So, I am trying to add a primary key to one of the tables in my database. He now has a primary key:
PRIMARY KEY (user_id, round_number)
Where user_id is the foreign key.
I am trying to change it to this:
PRIMARY KEY (user_id, round_number, created_at)
I do this in phpmyadmin by clicking the primary key icon in the table structure view.
This is the error I get:
#1025 - Error on rename of './database/#sql-2e0f_1254ba7' to './database/table' (errno: 150)
This is a MySQL database with the InnoDB table engine.
sql mysql phpmyadmin innodb mysql-error-1025
Richard Knop Nov 02 '10 at 17:55 2010-11-02 17:55
source share