# Handling upgrade with local fixes etc

**URL:** <https://talk.getindico.io/t/handling-upgrade-with-local-fixes-etc/101>\
**Category:** Administrators\
**Created:** [December 1, 2017, 10:28am UTC](https://talk.getindico.io/t/handling-upgrade-with-local-fixes-etc/101 "2017-12-01T10:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [December 1, 2017, 10:28am UTC](https://talk.getindico.io/t/handling-upgrade-with-local-fixes-etc/101/1 "2017-12-01T10:28:05Z")

</div>

Hi,

I would like to get some input on how to handle upgrades on a production system if one needs non-released patches etc.

1. How safe is it (regading future upgrades) to run from 2.1-dev HEAD git checkout?
2. How to handle changes not yet merged to the upstream branch that introduce new alembic revision? Are they still stable, or will there be a need to manually patch the database in case other migrations get merged inbetweeen?
3. Is there timeline for the 2.1 release already?

Thanks in advance,  
Björn

---

<div class="post-metadata">

**Author:** ![pferreir](https://talk.getindico.io/user_avatar/talk.getindico.io/pferreir/32/7_2.png) [@pferreir](https://talk.getindico.io/u/pferreir)\
**Post date:** [December 1, 2017, 2:05pm UTC](https://talk.getindico.io/t/handling-upgrade-with-local-fixes-etc/101/2 "2017-12-01T14:05:21Z")

</div>

> [@bpedersen2](#):
>
> How safe is it (regading future upgrades) to run from 2.1-dev HEAD git checkout?

I wouldn’t. This is a development branch that may be unstable, buggy and data structures that will change.

> [@bpedersen2](#):
>
> How to handle changes not yet merged to the upstream branch that introduce new alembic revision? Are they still stable, or will there be a need to manually patch the database in case other migrations get merged inbetweeen?

I wouldn’t apply a patch that contains a schema change on a production machine. I’d wait for the next release. If you really want to do that, then get it from master which at least is known to be reasonably stable.

> [@bpedersen2](#):
>
> Is there timeline for the 2.1 release already?

We’re counting on deploying it at CERN (and having a first beta release) in January.

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [December 1, 2017, 2:31pm UTC](https://talk.getindico.io/t/handling-upgrade-with-local-fixes-etc/101/3 "2017-12-01T14:31:42Z")

</div>

> [@"pferreir](#):
>
> > [@bpedersen2](#):
> >
> > How safe is it (regading future upgrades) to run from 2.1-dev HEAD git checkout?
> 
> I wouldn’t. This is a development branch that may be unstable, buggy and data structures that will change.

Yes, that’s what I thought.

> [@"pferreir](#):
>
> > [@bpedersen2](#):
> >
> > How to handle changes not yet merged to the upstream branch that introduce new alembic revision? Are they still stable, or will there be a need to manually patch the database in case other migrations get merged inbetweeen?
> 
> I wouldn’t apply a patch that contains a schema change on a production machine. I’d wait for the next release. If you really want to do that, then get it from master which at least is known to be reasonably stable.

I’ll just wait in this case, as the change in question can still wait a bit.

> [@"pferreir](#):
>
> > [@bpedersen2](#):
> >
> > Is there timeline for the 2.1 release already?
> 
> We’re counting on deploying it at CERN (and having a first beta release) in January.

That would still be fine for me, so I’ll just wait a bit. At least for schema-changing things.
