Also update the activity table with this

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-10-13 11:46:50 +02:00
parent e2ec6b33ea
commit 6acf1d9524
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 6 additions and 0 deletions

View File

@ -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) {