Skip to content

Commit 73f1204

Browse files
committed
add upgrade
1 parent c487e4b commit 73f1204

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/hooks/database_pre_upgrade.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ metadata:
1212
# job is considered part of the release.
1313
"helm.sh/hook": pre-upgrade
1414
"helm.sh/hook-weight": "2"
15-
"helm.sh/hook-delete-policy": hook-succeeded
1615
spec:
1716
template:
1817
metadata:
@@ -57,7 +56,7 @@ spec:
5756
- secretRef:
5857
name: db-migrations-secret
5958
# The actual migrations command
60-
command: ["sh","-c", "cd shared; export PYTHONPATH=/app; pip install sqlalchemy-utils==0.36.6;python /app/play_and_scripts/scripts/create_database.py;"]
59+
command: ["sh","-c", "cd shared; export PYTHONPATH=/app; pip install sqlalchemy-utils==0.36.6;python /app/play_and_scripts/scripts/create_database.py; ; alembic upgrade head"]
6160

6261
{{ if .Values.nodeGroupLabel }}
6362
nodeSelector:

0 commit comments

Comments
 (0)