-- +goose Up -- Stage 9 Telegram integration: a per-account toggle that confines notifications -- to the in-app live stream. When notifications_in_app_only is true (the default), -- the platform side-service (Telegram) sends no out-of-app push; turning it off -- opts into out-of-app push, which the gateway delivers only while the account has -- no live in-app stream, so the in-app and platform channels never duplicate. Adds -- a column, so the generated jet code is regenerated (cmd/jetgen). SET search_path = backend, pg_catalog; ALTER TABLE accounts ADD COLUMN notifications_in_app_only boolean NOT NULL DEFAULT true; -- +goose Down SET search_path = backend, pg_catalog; ALTER TABLE accounts DROP COLUMN notifications_in_app_only;