Hello all! First time posting.
My team is working with Axon 2.4, and Flyway 5-6, and Postgres 9.1. We’re working with a database that has several years of axon aggregates/events stored in it. We have PII in the axon events, and would like to remove the old events(and we’d encrypt any new events for the particular aggregate).
Our first idea was to load the aggregates in a flyway migration, delete them, then issue a ‘create’ command rebuilding the aggregates from the corresponding view. I was not able to get axon beans to finish loading when the flyway migration was invoked during application startup - leading to exceptions being thrown when I tried to send events on the command gateway.
My next idea was to write some sort of post construct that would accomplish a similar goal, but I figured one of you might have dealt with a similar issue. What’s the best approach for deleting an aggregates event history?