[release-monitoring] Downgrade db to correct state
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
3d8ca34ec6
commit
410a85f3e1
2 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,8 @@ items:
|
||||||
failurePolicy: Abort
|
failurePolicy: Abort
|
||||||
execNewPod:
|
execNewPod:
|
||||||
containerName: release-monitoring-web
|
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:
|
volumes:
|
||||||
- config-volume
|
- config-volume
|
||||||
resources: {}
|
resources: {}
|
||||||
|
|
|
@ -52,6 +52,7 @@ items:
|
||||||
{% else %}
|
{% else %}
|
||||||
git checkout production && \
|
git checkout production && \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
sed -i -e 's/op.drop_column/#op.drop_column/' anitya/db/migrations/versions/708f6f26b4b6_add_version_pattern.py && \
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
pushd docs && \
|
pushd docs && \
|
||||||
mkdir -p images && \
|
mkdir -p images && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue