Skip to content

v0.3.0

Compare
Choose a tag to compare
@mkubala mkubala released this 12 Oct 12:28
· 446 commits to master since this release
be8a583

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

Changes

  • Akka 2.6.10 (was 2.6.5) #103
  • ScalaTest 3.2.0 (was 3.1.2) #103
  • Slick-pg 0.19.3 (was 0.19.2) #103
  • Scafeine 4.0.2 (was 4.0.1) #103
  • PostgreSQL JDBC driver 42.2.17 (was 42.2.12) #103
  • Flyway 7.0.2 #100 #103