feat(db): add TelegramChannel.allowsForwarding + IngestionRun.zipsForwarded

This commit is contained in:
2026-07-31 04:30:33 +02:00
parent 40894267d4
commit 80d41ac78f
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,10 @@
-- AlterTable: forward-priority ingestion support.
-- allowsForwarding is nullable — null means "not yet checked", treated the
-- same as false until confirmed true (safe default: download+reupload path).
ALTER TABLE "telegram_channels"
ADD COLUMN "allowsForwarding" BOOLEAN;
-- AlterTable: count of packages forwarded (no download) during a run.
-- Additive, non-null with a default of 0 — no data change for existing rows.
ALTER TABLE "ingestion_runs"
ADD COLUMN "zipsForwarded" INTEGER NOT NULL DEFAULT 0;