Updating from <2.2¶
If you are updating from a version prior to 1.13, you have to implement all the changes from Updating from <1.13 before following the steps below.
During database update, you have to go through all the changes between your current version and your final version e.g. during update from v2.2 to v2.5 you have to perform all the steps from: <2.3, <2.4 and <2.5. Only after applying all changes your database will work properly.
Change from UTF8 to UTF8MB4¶
Since v2.2 the character set for MySQL/MariaDB database tables changes from
utf8mb4 to support 4-byte characters.
To apply this change, use the following database update script:
If you use DFS Cluster, also execute the following database update script:
Be aware that these upgrade statements may fail due to index collisions. This is because the indexes have been shortened, so duplicates may occur. If that happens, you must remove the duplicates manually, and then repeat the statements that failed.
After successfully running those statements, change the character set and collation for each table, as described in kernel upgrade documentation.
You should also change the character set that is specified in the application config:
app/config/config.yml, set the following:
1 2 3 4 5
Also make the corresponding change in
To update to v2.2, you need to run a script to add database tables for the Page Builder. You can find it in https://github.com/ezsystems/ezplatform-ee-installer/blob/2.2/Resources/sql/schema.sql#L58
When updating an Enterprise installation, you also need to run the following script due to changes in the
1 2 3 4 5 6 7 8 9 10
Migrate Landing Pages¶
To update to v2.2 with existing Landing Pages, you need to use a dedicated script.
The script is contained in the
ezplatform-page-migration bundle and works since version v2.2.2.
To use it:
composer require ezsystems/ezplatform-page-migration
- Add the bundle to
- Run command
This script will use the layout defined in your Landing Page.
To migrate successfully, you need to copy your zone configuration
ezplatform_page_fieldtype in the new config.
Otherwise the script will encounter errors.
You can remove the bundle after the migration is complete.
The command will migrate Landing Pages created in eZ Platform 1.x, 2.0 and 2.1 to new Pages. The operation is transactional and will roll back in case of errors.
If there are missing block definitions, such as Form Block or Schedule Block, you have an option to continue, but migrated Landing Pages will come without those blocks.
If you use different repositories with different SiteAccesses, use the
to migrate them separately.
You can use the
--dry-run switch to test the migration.
After the migration is finished, you need to clear cache.
Migrate custom blocks¶
For block types with custom storage you need to provide a dedicated converter but for simple blocks you can use
\EzSystems\EzPlatformPageMigration\Converter\AttributeConverter\DefaultConverter as your service class.
You also need to redefine YAML configuration for your custom blocks.
Since v2.2 you no longer need to use services for custom Page Blocks, you can create them using YAML configuration.
The service definition has to be tagged as:
Custom converters must implement the
convert() will parse XML
\DOMNode $node and return an array of
You can now follow the steps from Updating from <2.3.