阶段七:完成 React Feature 化与前置重构收口
This commit is contained in:
1 parent
375e84d663
commit
1a228dc35c
305 files changed
+14179
-5431
No files matched your search
@@ -0,0 +1,10 @@
|
||||
-- +goose Up
|
||||
-- idempotency_key 让同一自动化运行终态对同一渠道只保留一条 outbox 记录。
|
||||
-- NULL 保持历史普通通知可重复投递;uncertain 记录保留原键,从而禁止恢复时自动重新入队。
|
||||
ALTER TABLE notification_outbox ADD COLUMN idempotency_key TEXT NULL;
|
||||
CREATE UNIQUE INDEX idx_notification_outbox_channel_idempotency
|
||||
ON notification_outbox(channel_id, idempotency_key);
|
||||
|
||||
-- +goose Down
|
||||
DROP INDEX IF EXISTS idx_notification_outbox_channel_idempotency;
|
||||
ALTER TABLE notification_outbox DROP COLUMN idempotency_key;
|
||||
Reference in new issue
Block a user