Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-13 12:46:50 +0300
committerJoas Schilling <coding@schilljs.com>2017-10-13 12:46:50 +0300
commit6acf1d95240e38abffe52fd2e4d93e8b7a0c47c1 (patch)
treee3c9acefb3e4bc1b6e03ffffcfe133df2f885b96 /core/Command/Db/ConvertFilecacheBigInt.php
parente2ec6b33ea39a38bfaa01e733f1211de8aab2b57 (diff)
Also update the activity table with this
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Db/ConvertFilecacheBigInt.php')
-rw-r--r--core/Command/Db/ConvertFilecacheBigInt.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Command/Db/ConvertFilecacheBigInt.php b/core/Command/Db/ConvertFilecacheBigInt.php
index da3e60fbb5e..75d3a48a5c8 100644
--- a/core/Command/Db/ConvertFilecacheBigInt.php
+++ b/core/Command/Db/ConvertFilecacheBigInt.php
@@ -52,6 +52,8 @@ class ConvertFilecacheBigInt extends Command {
protected function getColumnsByTable() {
return [
+ 'activity' => ['activity_id', 'object_id'],
+ 'activity_mq' => ['mail_id'],
'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart'],
'mimetypes' => ['id'],
'storages' => ['numeric_id'],
@@ -65,6 +67,10 @@ class ConvertFilecacheBigInt extends Command {
$tables = $this->getColumnsByTable();
foreach ($tables as $tableName => $columns) {
+ if (!$schema->hasTable($tableName)) {
+ continue;
+ }
+
$table = $schema->getTable($tableName);
foreach ($columns as $columnName) {