Hacker News new | past | comments | ask | show | jobs | submit login

That’s not enough because it ignores all foreign key constraints.



Lock db exclusively, disable foreign key checking, rebuild and replace table, reconfigure foreign keys (they are gone after delete and rename), and everything should be fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: