[release-monitoring] Downgrade db to correct state

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-09-02 16:20:51 +02:00 committed by Pierre-Yves Chibon
parent 3d8ca34ec6
commit 410a85f3e1
2 changed files with 3 additions and 1 deletions

View file

@ -19,7 +19,8 @@ items:
failurePolicy: Abort
execNewPod:
containerName: release-monitoring-web
command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
#command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini downgrade e34988f3e2f4" ]
volumes:
- config-volume
resources: {}

View file

@ -52,6 +52,7 @@ items:
{% else %}
git checkout production && \
{% endif %}
sed -i -e 's/op.drop_column/#op.drop_column/' anitya/db/migrations/versions/708f6f26b4b6_add_version_pattern.py && \
python3 setup.py install && \
pushd docs && \
mkdir -p images && \