Professional Documents
Culture Documents
Akeneo Upgrade: Clone Repository COMPOSER - MEMORY - LIMIT - 1 Composer Install
Akeneo Upgrade: Clone Repository COMPOSER - MEMORY - LIMIT - 1 Composer Install
Akeneo Upgrade: Clone Repository COMPOSER - MEMORY - LIMIT - 1 Composer Install
Clone repository
COMPOSER_MEMORY_LIMIT=-1 composer install
cp -R ./vendor/akeneo/pim-community-dev/upgrades/* ./upgrades/
cp -R ./vendor/akeneo/pim-enterprise-dev/upgrades/* ./upgrades/
Remove all migrations which were already done from upgrades directory by
looking into table "migration_versions":
php bin/console doctrine:migrations:version --add --all -q
rm -rf var/cache/*
COMPOSER_MEMORY_LIMIT=-1 composer update
composer.json
yarn install
Please, make sure the folder upgrades/schema/ does not contain former migration
files (from PIM 3.0 to 3.1 for instance), otherwise the migration command will
surely not work properly.
cd $PIM_DIR
rm -rf var/cache
bin/console doctrine:migration:migrate --env=prod
bin/console pimee:data-quality-insights:migrate-product-criterion-evaluation
delete from migration_versions where version like '_3_2%' or version like '_4_%'
or version like '_5_%';
Not working
delete from migration_versions where version =
'_4_0_20200102220042_move_assets_to_asset_storage';
rm -rf var/cache/*
bin/console
bin/console doctrine:migration:execute --env=prod
_4_0_20200102220042_move_assets_to_asset_storage
Migrate PAM to Assets
https://help.akeneo.com/pim/serenity/articles/pam-migration-guide.html
git clone https://github.com/akeneo/CsvToAsset.git
cd CsvToAsset
composer install --no-dev --ignore-platform-reqs
composer require symfony/process --ignore-platform-reqs
cp .env.dist .env
in: vendor/akeneo/api-php-client/src/Client/HttpClient.php
add following line in foreach ($headers...)
if ($header == 'localized') continue;
php bin/migrate.php "ProductImages" /home/akeneo/pim
/tmp/migration_target_7EUnWJ_invalid_items_1633742557.csv
Migrations completed:
Migration
_4_0_20191206083026_transform_image_attributes_to_media_file_attribute
s was executed but did not result in any SQL statements.
Migration _4_0_20200102220042_move_assets_to_asset_storage was
executed but did not result in any SQL statements.
Migration _4_0_20200113145800_fix_versioning_indexes was executed but
did not result in any SQL statements.
Migration _4_1_20200127171059_unauthorized_view_all_jobs_permission
was executed but did not result in any SQL statements.
Migration
_5_0_20200309165300_remove_product_foreign_key_pim_catalog_comple
teness was executed but did not result in any SQL statements.
Migration
_5_0_20200313140000_regenerate_missing_data_for_the_connection_audit
was executed but did not result in any SQL statements.
Migration _5_0_20200427144538_create_connection_error_index was
executed but did not result in any SQL statements.
Migration
_5_0_20200706112252_unauthorize_pimee_catalog_rule_rule_create_permi
ssions was executed but did not result in any SQL statements.
Migration
_5_0_20200706120234_unauthorize_pimee_catalog_rule_rule_edit_permiss
ions was executed but did not result in any SQL statements.
Migration
_5_0_20201103134233_data_quality_insights_attribute_quality_by_locale
was executed but did not result in any SQL statements.
Migration _5_0_20201208132458_update_asset_export_prefix_suffix was
executed but did not result in any SQL statements.
Migration _5_0_20210119135130_reindex_assets was executed but did not
result in any SQL statements.