Project

General

Profile

"Database Column Conversion to Big Integers in Nextcloud" » History » Version 1

Gareth Eaton, 04/08/2023 09:17 AM

1 1 Gareth Eaton
h1. "Database Column Conversion to Big Integers in Nextcloud"
2
3
Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running "occ db:convert-filecache-bigint" those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this ↗.
4
5
it is recommended to enable maintenance mode before running the occ db:convert-filecache-bigint command. This will ensure that no users can access the instance during the database conversion process, which can take a considerable amount of time and may cause errors or issues for users trying to access the instance while the process is ongoing.
6
7
To enable maintenance mode, you can use the following command:
8
<pre>
9
sudo -u www-data php occ maintenance:mode --on
10
</pre>
11
12
<pre>
13
sudo systemctl stop apache2
14
</pre>
15
16
---
17
18
When you're done with your updates or changes, you can turn off maintenance mode with the following command:
19
20
<pre>
21
sudo -u www-data php occ maintenance:mode --off
22
</pre>
23
24
<pre>
25
sudo systemctl start apache2
26
</pre>
27
28
---
29
30
The occ script should be located in the nextcloud directory (the top-level directory of your Nextcloud installation).
31
32
<pre>
33
sudo -u www-data php occ db:convert-filecache-bigint
34
</pre>