\Dev\Tasks\MigrateFileIntegrationTask

Silverstripe Version: 3.1.9 to 5.4

Question:

I am using Google’s AI Gemini to help with upgrading an old site. It probably started with Silverstripe v2, is currently 3.1.9 and I am trying to move it to 5.4. We’ve come a long way. We upgraded the code, the templates, we managed to port the database across, we are struggling with the Files.

Gemini assures me that I need to run \Dev\Tasks\MigrateFileIntegrationTask and that it is installed but for some reason it doesn’t come up in the browser under Dev\Tasks and it won’t let me run it. I am logged in as an admin.

Any advice on this part of the migration puzzle? Do I need to install something more via Composer?

Searching for the MigrateFileIntegration Task, the closest folder I can find it: C:\wamp64\www\ttec2025-6.1\vendor\silverstripe\assets\src\Dev\Tasks and all it contains is InterventionBackendCacheFlushTask.php.

How do I migrate the files?

Just searched the forum and found this: MigrateFilesTask - Upgrading SilverStripe 3 to SilverStripe 5 This Task is deprecated in version 5. Boo! We will have to do this manually now.

You only need to run \Dev\Tasks\MigrateFileIntegrationTask between 3 and 4.

I ran into the same problem which is what that post was about. The trick is to upgrade 3 → 4 first, (don’t try to upgrade directly from 3 → 5). Then once everything’s working in version 4, upgrade from 4 → 5 as a separate process.

SilverStripe did a big overhaul between 3 and 4, so upgrades get easier once you get through that hoop.