Add job migration
This commit is contained in:
parent
7f0b0c7a3b
commit
5a3dfc8597
@ -16,6 +16,8 @@ spec:
|
|||||||
- |
|
- |
|
||||||
echo "Running DB migration: add display_name to profiles..."
|
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;"
|
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 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:
|
env:
|
||||||
- name: PGPASSWORD
|
- name: PGPASSWORD
|
||||||
value: {{ .Values.postgres.password | quote }}
|
value: {{ .Values.postgres.password | quote }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user