Also update the activity table with this
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
e2ec6b33ea
commit
6acf1d9524
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue