diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-12-04 18:43:02 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-12-05 13:42:31 +0100 |
commit | 17b2827bbf20691dc59721a9c61a225c5fb4e0de (patch) | |
tree | 9d063cd85220c49e9558700b8624379ffa2b3e01 /core/js/setupchecks.js | |
parent | f57e334f8395e3b5c046b6d28480d798453e4866 (diff) | |
download | nextcloud-server-17b2827bbf20691dc59721a9c61a225c5fb4e0de.tar.gz nextcloud-server-17b2827bbf20691dc59721a9c61a225c5fb4e0de.zip |
Add setup check for pending bigint conversion
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 222b12b8f40..343b676080a 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -337,6 +337,22 @@ type: OC.SetupChecks.MESSAGE_TYPE_INFO }) } + if (data.pendingBigIntConversionColumns.length > 0) { + var listOfPendingBigIntConversionColumns = ""; + data.pendingBigIntConversionColumns.forEach(function(element){ + listOfPendingBigIntConversionColumns += "<li>" + element + "</li>"; + }); + messages.push({ + msg: t( + 'core', + '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 <a target="_blank" rel="noreferrer noopener" href="{docLink}">the documentation page about this</a>.', + { + docLink: oc_defaults.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-bigint-conversion'), + } + ) + "<ul>" + listOfPendingBigIntConversionColumns + "</ul>", + type: OC.SetupChecks.MESSAGE_TYPE_INFO + }) + } if (data.isSqliteUsed) { messages.push({ msg: t( |