This commit is contained in:
Čarodej
2022-03-31 11:18:09 +02:00
parent ef9f654834
commit ff476251f5
4 changed files with 24 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace Domain\Maintenance\Controllers;
use DB;
@@ -110,5 +111,14 @@ class UpgradeSystemController extends Controller
->whereIn('parent_id', $teamFolderIds)
->update(['user_id' => $teamFolder->user_id]);
});
// Upgrade dwg files
File::withTrashed()
->where('mimetype', 'vnd.dwg')
->cursor()
->each(fn($file) => $file->update([
'mimetype' => 'dwg',
'type' => 'file',
]));
}
}