Skip to content

Commit c33ffb0

Browse files
committed
docs: clarify notification routing migration
1 parent d523034 commit c33ffb0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/internal/storage/sqlite/migrations/0003_notification_deliveries.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
-- +goose Up
22
-- +goose StatementBegin
33
ALTER TABLE notifications ADD COLUMN routed_at TIMESTAMP;
4+
-- Notifications that already exist when this migration runs predate the
5+
-- delivery runtime. Treat them as already routed so an upgrade does not
6+
-- synthesize new AO-app desktop toasts for historical notification rows; the
7+
-- dashboard read model still sees those rows directly from notifications.
48
UPDATE notifications SET routed_at = updated_at WHERE routed_at IS NULL;
59
CREATE INDEX idx_notifications_unrouted
610
ON notifications(seq)

0 commit comments

Comments
 (0)