v0.3.0
Highlights
- Store metadata in a separate column and serialize the raw message #91 #94 #95 #98
- Provide Migration Tool that converts v0.2.0 journal and snapshshot store into v0.3.0 model #96 #100
Migration from 0.2.0 and 0.1.0
In order to migrate from older versions of this plugin you have to run the Migration Tool during the application startup, before persistence extension is initialized.
The provided tool keeps track of already applied migrations, so it performs each of them only once.
Can multiple nodes migrate in parallel?
Migration Tool uses Flyway which coordinates multi-node migrations using database locks. This ensures that even if multiple instances of your application attempt to migrate the database at the same time, it still works.
Adding Migration Tool to your project
The Migration Tool is distributed as a separate artifact that must be added to your libraryDependencies
:
libraryDependencies += "com.swissborg" %% "akka-persistence-postgres-migration" % "0.3.0"
Using Migration Tool
Initializing and running the tool is as simple as:
AkkaPersistencePostgresMigration.configure(applicationConfig).build(actorSystem).run