Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
caioariede
on Aug 23, 2013
|
parent
|
context
|
favorite
| on:
Schema migrations merged into Django master
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?
sdfjkl
on Aug 23, 2013
[–]
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.
caioariede
on Aug 23, 2013
|
parent
[–]
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.
kanzure
on Aug 26, 2013
|
root
|
parent
[–]
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: