kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

Extend the generation of migration files ? #204

Closed StarNab closed 5 years ago

StarNab commented 5 years ago

Hi,

Is it possible to extend the migration file process generation ? I'm using "kaliop:migration:generate" and I want to customize the remote_id in the YML file generated. Can this be achieved at the moment ? Is there an event-like solution for that for example ?

gggeek commented 5 years ago

Hello. I am afraid that at the moment there is no event emitted for migration generation. It is an interesting feature request though :-)

How I achieved custom generation of migrations definitions so far: I created a new Executor class, which subclasses f.e. the Content Executor. I gave it a custom supported-step-type, eg. 'content_export', and reimplemented method generateMigration. That should be enough to get you going...

StarNab commented 5 years ago

Hi @gggeek , yes I thought about that. In my case as I just wanted to customize the remote_id, it felt it was overkill. I might make a pull request later on then :)

gggeek commented 5 years ago

Implemented in master