From f6b55ae513b7cdbf75b00d59910ecad7a5a45fad Mon Sep 17 00:00:00 2001 From: Demonsthere Date: Mon, 9 Dec 2024 08:38:57 +0100 Subject: [PATCH] chore: upgrade sql migration commands --- helm/charts/hydra/templates/job-migration.yaml | 9 ++++++++- helm/charts/kratos/templates/job-migration.yaml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/helm/charts/hydra/templates/job-migration.yaml b/helm/charts/hydra/templates/job-migration.yaml index 56cf3e812..24ea19b96 100644 --- a/helm/charts/hydra/templates/job-migration.yaml +++ b/helm/charts/hydra/templates/job-migration.yaml @@ -59,7 +59,14 @@ spec: {{- if .Values.hydra.automigration.customArgs }} args: {{- toYaml .Values.hydra.automigration.customArgs | nindent 10 }} {{- else }} - args: ["migrate", "sql", "-e", "--yes", "--config", "/etc/config/hydra.yaml"] + args: + - "migrate" + - "sql" + - "up" + - "-e" + - "--yes" + - "--config" + - "/etc/config/hydra.yaml" {{- end }} env: {{- if not (empty ( include "hydra.dsn" . )) }} diff --git a/helm/charts/kratos/templates/job-migration.yaml b/helm/charts/kratos/templates/job-migration.yaml index dcbc283c9..451d146ac 100644 --- a/helm/charts/kratos/templates/job-migration.yaml +++ b/helm/charts/kratos/templates/job-migration.yaml @@ -57,7 +57,14 @@ spec: {{- if .Values.kratos.automigration.customArgs }} args: {{- toYaml .Values.kratos.automigration.customArgs | nindent 10 }} {{- else }} - args: ["migrate", "sql", "-e", "--yes", "--config", "/etc/config/kratos.yaml"] + args: + - "migrate" + - "sql" + - "up" + - "-e" + - "--yes" + - "--config" + - "/etc/config/kratos.yaml" {{- end }} env: {{- if not (empty ( include "kratos.dsn" . )) }}