From b4c83e746270651a44162dfebf4232db171e46bf Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 11 Nov 2026 08:51:34 +0300 Subject: [PATCH] fix: rebuild RUB-only snapshots on next tick (WealthLedger/main#55) --- .../20261108000001_rub_only_resync_now/migration.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 prisma/migrations/20261108000001_rub_only_resync_now/migration.sql diff --git a/prisma/migrations/20261108000001_rub_only_resync_now/migration.sql b/prisma/migrations/20261108000001_rub_only_resync_now/migration.sql new file mode 100644 index 0000000..eb60a8b --- /dev/null +++ b/prisma/migrations/20261108000001_rub_only_resync_now/migration.sql @@ -0,0 +1,3 @@ +-- RUB-only: snapshots were dropped by the previous migration; clearing the hourly +-- schedule makes the next scheduler tick rebuild them instead of waiting for the term. +DELETE FROM "TbankSyncWork" WHERE "scopeKey" = 'hourly';