From b3db63a778e780114795047f6e20da37faf42f99 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 17 Dec 2025 18:24:50 +0200 Subject: [PATCH] Update job migration --- charts/dateme-chart/templates/db-migration-job.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/dateme-chart/templates/db-migration-job.yaml b/charts/dateme-chart/templates/db-migration-job.yaml index 4410f52..c68a523 100644 --- a/charts/dateme-chart/templates/db-migration-job.yaml +++ b/charts/dateme-chart/templates/db-migration-job.yaml @@ -16,6 +16,18 @@ spec: - | echo "Running DB migration: add display_name to profiles..." 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 display_name TEXT;" + echo "Running DB migration: add age to profiles..." + 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 age INTEGER;" + echo "Running DB migration: add gender to profiles..." + 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 gender TEXT;" + echo "Running DB migration: add location to profiles..." + 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 location TEXT;" + echo "Running DB migration: add bio to profiles..." + 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 bio TEXT;" + echo "Running DB migration: add interests to profiles..." + 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 interests TEXT;" + echo "Running DB migration: add photos to profiles..." + 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;" env: