From f5a4887ff84b66ae497678a18fc8dae3db9f67ab Mon Sep 17 00:00:00 2001 From: exAspArk Date: Tue, 17 Sep 2024 14:39:20 -0400 Subject: [PATCH] Add information about tracking the "before" state --- README.md | 6 ++++++ docs/docs/changelog.md | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index a5e1fa8..5d55b40 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,12 @@ And of course, you need a PostgreSQL database that you want to connect to to tra ALTER SYSTEM SET wal_level = logical; ``` +To track both the "before" and "after" states on data changes, please run the following SQL command: + +```sql +ALTER TABLE [tracked_table_name] REPLICA IDENTITY FULL; +``` + ## Quickstart for local development ### Running with Docker diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 424295e..6ec3b50 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -17,6 +17,9 @@ keywords: ['Bemi Changelog', 'Bemi New Features', 'Postgres Audit Trails', 'Chan * [Bemi Core](https://github.com/BemiHQ/bemi) * Insert records in batches sequentially to avoid overloading the database at scale * Update local Docker image path +* [Bemi TypeORM](https://github.com/BemiHQ/bemi-typeorm) + * Allow calling `setContext` multiple times + * Validate the passed context payload size * [Bemi MikroORM](https://github.com/BemiHQ/bemi-mikro-orm) * Create a new JS/TS package to allow passing application context with data changes