Skip to content

v4.0.0

Choose a tag to compare

@luca-iachini luca-iachini released this 02 Feb 17:41
· 60 commits to main since this release
9b2d8be

What's Changed

If you are upgrading from Disintegrate v3 to v4, you must migrate the database schema before starting the new version.

Use the provided Migrator utility:

use disintegrate_postgres::Migrator;
let migrator = Migrator::new(event_store.clone());
migrator.migrate_v3_x_x_to_v4_0_0().await?;

This updates the database to the schema required by v4.
⚠️ The migrator intentionally does not remove database objects that are no longer used by the library.
After verifying that the migration completed successfully and your application runs correctly, you can manually remove the obsolete objects:
Functions:

  • event_store_begin_epoch
  • event_store_current_epoch
    Table:
  • event_sequence

Full Changelog: v3.0.0...v4.0.0