I got this error when i was trying to alter my table.
Error Code: 1833. Cannot change column \'person_id\': used in a foreign key constraint \'fk_fav_food_p
You can turn off foreign key checks:
SET FOREIGN_KEY_CHECKS = 0; /* DO WHAT YOU NEED HERE */ SET FOREIGN_KEY_CHECKS = 1;
Please make sure to NOT use this on production and have a backup.