Files
GmRelayBot/src/GmRelay.Bot/Migrations/V015__add_topic_ownership.sql
T
Toutsu de9f56c97d
PR Checks / test-and-build (pull_request) Failing after 3m18s
feat(#21): support selected telegram topics for schedules
Route new schedules to an existing forum topic when /newsession is sent inside one, create bot-owned topics only from the forum root, and keep group notifications/dashboard updates threaded to the stored topic.

Persist topic ownership so deletion only removes empty bot-created topics, add topic routing tests and smoke coverage, and bump release metadata to 1.14.0.
2026-05-12 12:07:51 +03:00

7 lines
167 B
SQL

ALTER TABLE sessions
ADD COLUMN topic_created_by_bot BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE sessions
SET topic_created_by_bot = TRUE
WHERE thread_id IS NOT NULL;