From ce7ea192fec4c86f3fb63e0f3431403e17e89042 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 17 Dec 2025 18:31:58 +0200 Subject: [PATCH] Update job migration --- charts/dateme-chart/templates/db-migration-job.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/dateme-chart/templates/db-migration-job.yaml b/charts/dateme-chart/templates/db-migration-job.yaml index c68a523..f7a1ad3 100644 --- a/charts/dateme-chart/templates/db-migration-job.yaml +++ b/charts/dateme-chart/templates/db-migration-job.yaml @@ -30,6 +30,8 @@ spec: psql -h {{ .Release.Name }}-{{ .Values.postgres.name }}-headless -U {{ .Values.postgres.user }} -d {{ .Values.postgres.database }} -c "ALTER TABLE profiles ADD COLUMN IF NOT EXISTS photos TEXT[];" echo "Running DB migration: add acknowledged_at to likes..." psql -h {{ .Release.Name }}-{{ .Values.postgres.name }}-headless -U {{ .Values.postgres.user }} -d {{ .Values.postgres.database }} -c "ALTER TABLE likes ADD COLUMN IF NOT EXISTS acknowledged_at TIMESTAMP;" + echo "Running DB migration: add read_at to messages..." + psql -h {{ .Release.Name }}-{{ .Values.postgres.name }}-headless -U {{ .Values.postgres.user }} -d {{ .Values.postgres.database }} -c "ALTER TABLE messages ADD COLUMN IF NOT EXISTS read_at TIMESTAMP;" env: - name: PGPASSWORD value: {{ .Values.postgres.password | quote }}