diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml
index 40cf3c1820ffc6bd32bdbeb9aef225e0ce4ee923..700ea8562376b22503ab44fe1401c21bac597fdb 100644
--- a/charts/nextcloud/Chart.yaml
+++ b/charts/nextcloud/Chart.yaml
@@ -8,7 +8,7 @@ maintainers:
   - name: groundhog2k
 
 # This is the chart version.
-version: 0.3.0
+version: 0.3.1
 
 # This is the version number of the application being deployed.
 appVersion: "20.0.3-apache"
diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md
index 14a5056dc6655bc8c3c55c424fc5a8a009614b4f..6bd6a834a5ca3749d7b5c5897161a2dae0b3be4b 100644
--- a/charts/nextcloud/README.md
+++ b/charts/nextcloud/README.md
@@ -1,6 +1,6 @@
 #  Nextcloud
 
-![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 20.0.3-apache](https://img.shields.io/badge/AppVersion-20.0.3-informational?style=flat-square)
+![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 20.0.3-apache](https://img.shields.io/badge/AppVersion-20.0.3-informational?style=flat-square)
 
 A Helm chart for Nextcloud on Kubernetes
 
diff --git a/charts/nextcloud/templates/deployment.yaml b/charts/nextcloud/templates/deployment.yaml
index 4684dd9212b8a64d05628cca9f2b579a97aa4004..e5149333147e51447802854e450f94ce38ce33dd 100644
--- a/charts/nextcloud/templates/deployment.yaml
+++ b/charts/nextcloud/templates/deployment.yaml
@@ -7,7 +7,7 @@ metadata:
 spec:
   replicas: {{ .Values.replicas }}
   strategy: 
-    type: Recreate
+    type: RollingUpdate
   selector:
     matchLabels:
       {{- include "nextcloud.selectorLabels" . | nindent 6 }}
diff --git a/charts/nextcloud/templates/scripts.yaml b/charts/nextcloud/templates/scripts.yaml
index 748aec903e7eeebf5e93217ad19ee9c157e531fd..0cfa7bac80495044f57613406cd11d59b194ce11 100644
--- a/charts/nextcloud/templates/scripts.yaml
+++ b/charts/nextcloud/templates/scripts.yaml
@@ -10,4 +10,5 @@ data:
     sleep {{ .Values.settings.databaseUpdateDelay }}
     php -f /var/www/html/occ db:add-missing-indices
     php -f /var/www/html/occ db:add-missing-columns
+    php -f /var/www/html/occ db:add-missing-primary-keys
     php -f /var/www/html/occ db:convert-filecache-bigint