0

I have a table
car
carID
name

and another table
wheel
carID
name

Trying to change the column car.carID to ID,
I get Error on rename of...
Due to the Constraints of the wheel table,
how can I still rename the column?

(my DB is far more complex than this example, so manually is a no go)

Asaf
  • 8,106
  • 19
  • 66
  • 116

1 Answers1

0

can this be the option,

first delete all constraints associated with the column

change column name

again apply all the constraints 

Renaming foreign-key columns in MySQL

Community
  • 1
  • 1
Zohaib
  • 7,026
  • 3
  • 26
  • 35