# Edition upgrade

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/5.0/llms.txt).

Upgrade your edition.

## Ibexa Doctrine Migrations

Ibexa Doctrine Migrations is a tool to update your installation's database schema introduced in v6.0.0, v5.0.Y, and v4.6.3X for all editions. It helps when moving to the latest patch version, it also helps when moving to a upper major version or to an upper edition of the product.

To be able to take advantage of Ibexa Doctrine Migrations, you need to be on a version including it. Before changing your major version or your edition, move to the latest patch version of your current major version and edition.

TODO: For example:

- Headless v4.6.x [→ Headless v4.6.latest](https://doc.ibexa.co/en/5.0/update_and_migration/from_4.6/update_from_4.6/index.md) [→ Headless v5.0.latest](https://doc.ibexa.co/en/5.0/update_and_migration/from_4.6/update_to_5.0/index.md)
- Headless v5.0.x [→ Headless v5.0.latest](https://doc.ibexa.co/en/5.0/update_and_migration/from_5.0/update_from_5.0/index.md) [→ Commerce v5.0.latest](#upgrade-edition)
- Headless v4.6.x [→ Headless v4.6.latest](https://doc.ibexa.co/en/5.0/update_and_migration/from_4.6/update_from_4.6/index.md) [→ Headless v5.0.latest](https://doc.ibexa.co/en/5.0/update_and_migration/from_4.6/update_to_5.0/index.md) [→ Commerce v5.0.latest](#upgrade-edition)

## Upgrade edition

Before starting upgrading your Ibexa DXP edition, ensure you have the latest version of your current edition, [update if needed](https://doc.ibexa.co/en/5.0/update_and_migration/update_ibexa_dxp/index.md).

TODO:

```bash
composer require ibexa/commerce:5.0.9
#TODO: do what's needed to have console working, like updating config.
php bin/console ibexa:doctrine:migrations:migrate
```

TODO: Config?
