Skip to content

Commit 648f571

Browse files
Remove create database in Upgrade context
no reason to attempt to create a database in the upgrade context and can cause hard to debug errors
1 parent f6ee367 commit 648f571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/hooks/database_pre_upgrade.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ spec:
4747
- secretRef:
4848
name: db-migrations-secret
4949
# The actual migrations command
50-
command: ["sh","-c", "cd shared; export PYTHONPATH=/app; pip install sqlalchemy-utils==0.41.1;python /app/play_and_scripts/scripts/create_database.py; alembic upgrade head"]
50+
command: ["sh","-c", "cd shared; export PYTHONPATH=/app; pip install sqlalchemy-utils==0.41.1; alembic upgrade head"]
5151

5252
{{ if .Values.nodeGroupLabel }}
5353
nodeSelector:

0 commit comments

Comments
 (0)