Migration from 4.0.7 to 4.5.3

System Information
  • Strapi Version: 4.0.7
  • Operating System: Ubuntu 18
  • Database: Mysql
  • Node Version: v16.14.0
  • NPM Version: 8.4.1
  • Yarn Version:

I have trouble understanding how to migrate from 4.0.7 to 4.5.3.
The documentation says that I should be doing each migration for each version.

The migration guides are sequential, meaning if there is more than 1 migration guide between your current version and the latest release, follow each guide in order.
Migration guide from 4.0.0+ to 4.0.6
Migration guide from 4.0.6+ to 4.1.8
Migration guide from 4.1.8+ to 4.1.10
Migration guide from 4.2.x to 4.3.x
Migration guide from 4.3.6 to 4.3.8
Migration guide from 4.4.3 to 4.4.5
Migration guide from 4.4.5 to 4.5.1

If I understand correctly I have to go through each of the above migration one by one.
Now from 4.1.10 to 4.2.x I will have to do a regular migration, just by updating the package.json
And after that migration I would have to continue here at 4.2.x to 4.3.x etc…
Correct?

Alright I will answer my own question with what seems to have worked well.
I went through the migration guides:

Migration guide from 4.0.6+ to 4.1.8
Migration guide from 4.1.8+ to 4.1.10
Migration guide from 4.2.x to 4.3.x
Migration guide from 4.3.6 to 4.3.8
Migration guide from 4.4.3 to 4.4.5
Migration guide from 4.4.5 to 4.5.1

Then I only looked for the breaking changes section or database migration, and applied all those changes at once.

The I upgraded the package.json with 4.5.4
Then npm Install and npm run build.
Restart the server, everything was upgraded and working.

Hey, quick question
how did you proceed upgrading from 4.3.8 to 4.4.x?
did you straight upgrade 4.3.8 to 4.4.3?

we are currently considering upgrading from 4.3.6 but i can’t seem to find a guide for 4.3.x migrations to 4.4.x

TIA

1 Like

I’m trying to upgrade like you do and can’t manage to get from 4.3.8 to 4.4.x, did you succeed ? I can’t seem to figure what’s wrong

i just did a striaght upgrade from 4.3.8 to 4.4.3
spun up the server, checked if everything works or if any problems were present and then proceeded upgrading