internal/store/migrations/0073_mail_reply.up.sql

ac8d910ff31c2fadc452928e1d56c64b4af25495
gitbay/internal/store/migrations/0073_mail_reply.up.sql

13 lines · 736 bytes

 1-- Reply by mail (#295). notify_reply puts a Reply-To carrying a reply
 2-- token on the account's issue and merge request mail when the instance
 3-- polls a mailbox for replies. notifications.reply_to is that address,
 4-- per queued message, blanked once it is sent. mail_replies records each
 5-- reply that posted a comment, keyed by account, thread and Message-ID
 6-- (or a hash of the message when it has none), so a message fetched
 7-- twice posts once.
 8ALTER TABLE users ADD COLUMN notify_reply INTEGER NOT NULL DEFAULT 0;
 9ALTER TABLE notifications ADD COLUMN reply_to TEXT NOT NULL DEFAULT '';
10CREATE TABLE mail_replies (
11    message_key TEXT PRIMARY KEY,
12    created_at  TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
13);
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form