Hi Pravin,

The problem you are seeing here is probably related to the fact you have 
some other foreign keys that rely on the user_id column, Mysql will do 
everything to make your life miserable if you change the name of the 
column/size of type that has other constraints depend on it - and the error 
message is not exactly helpful here.

To fix your issue you will have to first drop the other constraints that 
depend on the column, then rename it, and then recreate constraints again.


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/K6RNkhjlveEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to