Commit f5a3d88b authored by Chris Croome's avatar Chris Croome

Add db:convert-filecache-bigint to upgrade

parent a9c57a9e
......@@ -7,6 +7,20 @@
group: www-data
mode: 0750
- name: Turn maintenance mode on
shell: php occ maintenance:mode --on
args:
executable: /bin/bash
chdir: /var/www/nextcloud
become_user: www-data
register: nextcloud_maintenance_mode_on
changed_when: "'Maintenance mode enabled' in nextcloud_maintenance_mode_on.stdout"
- name: Result of turn maintenance mode on
debug:
msg: "{{ nextcloud_maintenance_mode_on.stdout }}"
verbosity: 1
- name: Backup the nextcloud database
shell: "mysqldump nextcloud > /var/backups/mysql/nextcloud.sql"
......@@ -38,6 +52,21 @@
msg: "{{ missing_indices.stdout }}"
verbosity: 1
# https://docs.nextcloud.com/server/15/admin_manual/configuration_database/bigint_identifiers.html
- name: Convert to use big integers are used to store identifiers and auto-increment keys in the database
shell: php occ db:convert-filecache-bigint --no-interaction
args:
executable: /bin/bash
chdir: /var/www/nextcloud
become_user: www-data
register: nextcloud_db_convert_filecache_bigint
changed_when: "'Following columns will be updated' in nextcloud_db_convert_filecache_bigint.stdout"
- name: Result of convert to use big integers
debug:
msg: "{{ nextcloud_db_convert_filecache_bigint.stdout }}"
verbosity: 1
# https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html#pretty-urls
- name: Remove index.php from URLs
shell: 'php occ config:system:set overwrite.cli.url --value="https://{{ common_name }}/"'
......@@ -89,5 +118,17 @@
name: collabora
when: apache_collabora_conf_enabled.stat.islnk is defined and apache_collabora_conf_enabled.stat.islnk
- name: Turn maintenance mode off
shell: php occ maintenance:mode --off
args:
executable: /bin/bash
chdir: /var/www/nextcloud
become_user: www-data
register: nextcloud_maintenance_mode_off
changed_when: "'Maintenance mode disabled' in nextcloud_maintenance_mode_off.stdout"
- name: Result of turn maintenance mode off
debug:
msg: "{{ nextcloud_maintenance_mode_off.stdout }}"
verbosity: 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment