Apply upgrades
Follow this guide when upgrading Ory Kratos to a newer version.
danger
Back up your data! Applying upgrades can lead to data loss if handled incorrectly.
- Review breaking changes. Visit the CHANGELOG.md to see if breaking changes have been introduced in the version you are upgrading to.
- Backup your data.
- Update the Ory Kratos SDK if used in your application.
- Install the new version of Ory Kratos.
- Run
kratos migrate sqlto run the SQL migrations to the new database schema. - If you are upgrading to a version that introduces phone number normalization, run
kratos migrate normalize-phone-numbersafter the new version is deployed and serving traffic. This rewrites existing phone identifiers to E.164 format. See the phone normalization guide for the recommended rollout sequence.
Should you run into problems with the upgrade, consider a stepped upgrade and please visit the community chat or start a discussion.
v0.7 Changed cookie behavior
In Ory Kratos v0.7 the cookie behavior has changed. Review changes in the exemplary self-service user interface. Visit the Cookie Settings document for more information.