Skip to content

Commit

Permalink
Merge pull request #85 from systemli/fix/upgrade_missing_indices
Browse files Browse the repository at this point in the history
Run occ commands after upgrade to add missing objects to database
  • Loading branch information
doobry-systemli authored Oct 1, 2024
2 parents 9fa92dd + f6c10bc commit 9b2a402
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/nextcloud/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@
notify: Test and restart apache2
changed_when: True

- name: "Nextcloud upgrade: run occ db:{{ item }}"
become: True
become_user: "{{ nextcloud_http_user }}"
ansible.builtin.command: >
php occ db:{{ item }}
args:
chdir: "{{ nextcloud_dl_tmp_dir }}/nextcloud"
loop:
- add-missing-columns
- add-missing-indices
- add-missing-primary-keys
changed_when: True

- name: "Nextcloud upgrade: unset maintenance mode via occ commandline"
become: True
become_user: "{{ nextcloud_http_user }}"
Expand Down

0 comments on commit 9b2a402

Please sign in to comment.