jldev / ibexa-enhanced-migrations
Additional features that improve the native ibexa migrations bundle.
1.0.0
2025-08-27 18:54 UTC
Requires
- php: ^7.4 || ^8.0
- ibexa/migrations: >= 4.6.0
This package is not auto-updated.
Last update: 2025-08-28 01:34:24 UTC
README
This bundle provides additional migration features to the native Ibexa DXP migrations bundle (available in ibexa content, ibexa experience and ibexa commerce).
Installation
composer require jldev/ibexa-enhanced-migrations
Make sure the bundle is enabled in your bundles.php
file.
Features
Custom functions that can be used in migration files (official documentation):
content_id_from_content_remote_id("remote_id")
: load a content from its remote id and return its content idlocation_id_from_content_remote_id("remote_id")
: load a content from its remote id and return its main location idlocation_path_string_from_content_remote_id("remote_id")
: load a content from its remote id and return its main location path stringcontent_id_from_location_remote_id("remote_id")
: load a location from its remote id and return its content idlocation_id_from_location_remote_id("remote_id")
: load a location from its remote id and return its location idlocation_path_string_from_location_remote_id("remote_id")
: load a location from its remote id and return its path string
Example of usage in a migration file:
- type: role mode: update match: field: identifier value: 'Anonymous' policies: mode: append list: - module: content function: read limitations: - { identifier: Node, values: [ '###XXX location_id_from_content_remote_id("my_remote_id") XXX###' ] }