We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d523034 commit c33ffb0Copy full SHA for c33ffb0
1 file changed
backend/internal/storage/sqlite/migrations/0003_notification_deliveries.sql
@@ -1,6 +1,10 @@
1
-- +goose Up
2
-- +goose StatementBegin
3
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.
8
UPDATE notifications SET routed_at = updated_at WHERE routed_at IS NULL;
9
CREATE INDEX idx_notifications_unrouted
10
ON notifications(seq)
0 commit comments