v4.3.6 to v4.3.8 migration guide
The Strapi v4.3.6 to v4.3.8 migration guide upgrades v4.3.6 to v4.3.8. The migration changes the SQLite database package from sqlite3 to better-sqlite3. The migration guide consists of:
- upgrading the application dependencies,
- changing the
sqlite3package tobetter-sqlite3, - reinitializing the application.
✋ Caution
- This migration guide skips v4.3.7, which introduced an error in the SQLite database.
- Plugins extension that create custom code or modify existing code, will need to be updated and compared to the changes in the repository. Not updating the plugin extensions could break the application.
Upgrading the application dependencies
☑️ Prerequisites
Stop the server before starting the upgrade.
- Upgrade all of the Strapi packages in
package.jsonto4.3.8:
path: ./package.json
{
// ...
"dependencies": {
"@strapi/strapi": "4.3.8",
"@strapi/plugin-users-permissions": "4.3.8",
"@strapi/plugin-i18n": "4.3.8",
// ...
}
}
- Change the
sqlite3package tobetter-sqlite3version7.4.6inpackage.json:
path: ./package.json
{
// ...
"dependencies": {
"@strapi/strapi": "4.3.8",
"@strapi/plugin-users-permissions": "4.3.8",
"@strapi/plugin-i18n": "4.3.8",
"better-sqlite3": "7.4.6"
// ...
}
}
Save the edited
package.jsonfile.Install the upgraded version:
- yarn
- npm
yarnnpm install💡 TipIf the operation doesn't work, try removing your
yarn.lockorpackage-lock.json. If that doesn't help, remove thenode_modulesfolder as well and try again.
Rebuild the application
Run the following command in your project root directory to rebuild Strapi's admin panel:
- yarn
- npm
yarn build
npm run build
Restart the application
Run the following command in your project root directory to restart the application:
- yarn
- npm
yarn develop
npm run develop