- Preform a backup of your database you wish to migrate and store that backup somewhere secure
- Nodejs v14/v16
- Yarn
yarn
- Choose which database you are migrating from/to (currently this script only supports migrating to the same database type as the source)
- Copy the corresponding
.env.DBTYPE.example
file to.env
using something likecp .env.pg.example .env
- Modify the configuration in the
.env
to match your v3 source and your v4 target databases
- Migrate your Strapi Code before running this script, see the following documentation
- Run Strapi v4 in
develop
mode with empty DB to generate the DB structure - Turn off / kill the running Strapi v4 server
- Run migration script using
yarn start