Migration
- If you are looking to migrate from Akka Persistence JDBC, you should upgrade to 5.1.x before attempting to migrate to Pekko’s equivalent.
- If you are using a newer version of Akka Persistence JDBC, it might be best to compare your table definitions with the Pekko table definitions of the version of Pekko Persistence JDBC that you intend to migrate to. It is possible that Akka have added changes that are not compatible with Pekko supports.
- The Pekko Migration Guide is a good summary of the changes that you need to make when switching from Akka to Pekko.
Migrating to 1.2.x
It is recommended that you read the section about DB Schema Changes in the 1.2.0 Release Notes.
Migrating to version 2.0.0
Release 2.0.0 changes the schema of the event_tag table.
The previous version was using an auto-increment column as a primary key and foreign key on the event_tag table. As a result, the insert of multiple events in batch was not performant.
While in 2.0.0, the primary key and foreign key on the event_tag table have been replaced with a primary key from the event_journal table. In order to migrate to the new schema, we made a migration script which is capable of creating the new column, migrating the rows and adding the new constraints.
By default, the plugin will behave as in previous version. If you want to use the new event_tag keys, you need to run a multiple-phase rollout:
- apply the first part of the migration script and then redeploy your application with the default settings.
- apply the second part of the migration script that will migrate the rows and adapt the constraints.
- redeploy the application by disabling the legacy-mode:
jdbc-journal {
tables {
// ...
event_tag {
// ...
// enable the new tag key
legacy-tag-key = false
}
}
}
// or simply configure via flattened style
jdbc-journal.tables.event_tag.legacy-tag-key = false