From 6f13903644e4bdd9456da42f4bd47f8f38ab0ec3 Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Tue, 2 Jun 2026 14:33:01 +0400 Subject: [PATCH] =?UTF-8?q?docs:=20sync=20from=20backend=207c4dedf=20?= =?UTF-8?q?=E2=80=94=20complete=20dual-write=20repos,=20migrations=20pipel?= =?UTF-8?q?ine,=20TTL=20scheduler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- 09 - Audits/Activity Log.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/09 - Audits/Activity Log.md b/09 - Audits/Activity Log.md index 3889be7..2eb2da8 100644 --- a/09 - Audits/Activity Log.md +++ b/09 - Audits/Activity Log.md @@ -679,4 +679,14 @@ TON-only, no EVM; backend already has tonProofService). --- +### 2026-06-02 — backend@7c4dedf — complete dual-write repos, migrations pipeline, TTL scheduler, address reconciliation + +**Commits:** `7c4dedf` (backend v2.8.44), frontend v2.8.44 +**Touched:** `src/db/repositories/dual/DualWriteDisputeRepo.ts` (new), `DualWriteTrezorAccountRepo.ts` (new), `DualWriteDerivedDestinationRepo.ts` (new), `src/db/repositories/factory.ts`, `src/db/schema/dispute.ts`, `src/db/schema/address.ts`, `src/db/schema/fundsLedgerEntry.ts`, `src/services/address/addressStore.ts`, `src/services/admin/dataCleanupService.ts`, `src/services/admin/ttlCleanupJob.ts` (new), `src/app.ts`, `src/shared/types/address.ts`, `drizzle.config.ts`, `migrations/` (new), `__tests__/dispute-dual-write.test.ts` (new) +**Why:** Complete all remaining Phase 1 migration prerequisites: the three missing DualWrite repos (Dispute, TrezorAccount, DerivedDestination) unblock PG cutover for those domains; migrations pipeline enables drizzle-kit schema management; FundsLedgerEntry immutability trigger (DDL in migrations/) protects money records from mutation; Dispute composite indexes match Mongo query patterns; TTL scheduler replaces Mongo TTL indexes for Notification/TempVerification/TelegramSession; Address schema reconciled so Drizzle is authoritative. +**Verification:** typecheck clean. 5 core suites (11 tests) pass. DualWriteDisputeRepo 21 tests pass. +**Linked docs updated:** `MIGRATION_TODO.md` — all 9 tasks marked done. + +--- +