diff --git a/helmchart/single-sign-on/templates/job-migration-hydra.yaml b/helmchart/single-sign-on/templates/job-migration-hydra.yaml
index 9f92c057a5573168478fc0cda4177f5a93010145..671f6edc43f3532916417c0bd241a9831da50ae4 100644
--- a/helmchart/single-sign-on/templates/job-migration-hydra.yaml
+++ b/helmchart/single-sign-on/templates/job-migration-hydra.yaml
@@ -16,7 +16,9 @@ metadata:
       {{- toYaml . | nindent 4 }}
     {{- end }}
     helm.sh/hook-weight: "1"
-    helm.sh/hook: "post-install, post-upgrade"
+    {{- if not .Release.IsInstall }}
+    helm.sh/hook: "pre-upgrade"
+    {{- end }}
     helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
 spec:
   template:
diff --git a/helmchart/single-sign-on/templates/job-migration.yaml b/helmchart/single-sign-on/templates/job-migration.yaml
index 3053ebe511696c02f8b831c72c71289607449464..ddb2fe3c79e0ee47952152294519f15cbb4efb0f 100644
--- a/helmchart/single-sign-on/templates/job-migration.yaml
+++ b/helmchart/single-sign-on/templates/job-migration.yaml
@@ -12,8 +12,11 @@ metadata:
     {{- with .Values.kratos.job.annotations }}
       {{- toYaml . | nindent 4 }}
     {{- end }}
+    {{- if not .Release.IsInstall }}
+    helm.sh/hook: "pre-upgrade"
+    {{- end }}
     helm.sh/hook-weight: "1"
-    helm.sh/hook: "post-install, post-upgrade"
+    # helm.sh/hook: "post-install, post-upgrade"
     helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
 spec:
   template: