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

A bit OT, but how do you guys handle database changes between multiple branches? Say I added some fields in branch A through multiple apps and then I need to go back to the master to do a fix. How do you revert the changes before checkout master?



If you write backwards migrations as well as forwards, South will do that for you, so presumably the Django migration system will do as well.


I know this. But I'm wondering if there is an easy way to do that, like a checkpoint that I can rollback all migrations to a specific point.


Some people just choose to use separate database names for each branch.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: