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

Support `upsert` migrations #245

Open gggeek opened 4 years ago

gggeek commented 4 years ago

It is currently possible to achieve an upsert (insert-or-update) via a 3-step process:

It would be nice to be able to do the same in a single migration step.

Besides contents, upsert could be used for most (all?) other Repo Entities.

NB: there are subtleties involved, such as: what if the pre-existing content has values for fields not specified in the upsert? Or extra locations? Same applies to ContentType defs...

gggeek commented 2 years ago

A document describing many of the subtleties of upserts for Contents has been added, will be in upcoming release 6.1