From ZHA to Zigbee2mqtt ... History?

I have decided to switch from zha to zigbee2mqtt.

First I disable zha and then I start to reconnect all devices. So far so good.

I have over a year’s worth of data stored in my MariaDB. Is it possible to reassign the devices to the historical data?

I would not like to give up the history.

Thanks

Rename the entities and it should be done.