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 | |
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')
-rw-r--r-- | core/js/setupchecks.js | 16 | ||||
-rw-r--r-- | core/js/tests/specs/setupchecksSpec.js | 39 |
2 files changed, 42 insertions, 13 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( diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js index b6b127bae53..05178a3e5cc 100644 --- a/core/js/tests/specs/setupchecksSpec.js +++ b/core/js/tests/specs/setupchecksSpec.js @@ -211,7 +211,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -261,7 +262,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -312,7 +314,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -361,7 +364,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -408,7 +412,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -457,7 +462,8 @@ describe('OC.SetupChecks tests', function() { appDirsWithDifferentOwner: [ '/some/path' ], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -504,7 +510,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -551,7 +558,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -596,9 +604,10 @@ describe('OC.SetupChecks tests', function() { cronInfo: { diffInSeconds: 0 }, + isMemoryLimitSufficient: false, appDirsWithDifferentOwner: [], recommendedPHPModules: [], - isMemoryLimitSufficient: false + pendingBigIntConversionColumns: [] }) ); @@ -666,7 +675,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -714,7 +724,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -762,7 +773,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); @@ -810,7 +822,8 @@ describe('OC.SetupChecks tests', function() { }, isMemoryLimitSufficient: true, appDirsWithDifferentOwner: [], - recommendedPHPModules: [] + recommendedPHPModules: [], + pendingBigIntConversionColumns: [] }) ); |