开放用户本人查看通知凭据前保存实现检查点
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-26 22:10:51 +08:00
1 parent 08ed8c3636
commit 05b01bbc83
10 files changed
+245 -7

No files matched your search

@@ -1,5 +1,11 @@
package migration
import "context"
func applyNotificationCiphertextSchema(ctx context.Context, exec executor, dialect Dialect) error {
return ensureColumn(ctx, exec, dialect, "notification_grant", "code_ciphertext", "VARCHAR(512) NULL")
}
func notificationGrantStatements() map[Dialect][]string {
// 不依赖自增、布尔或日期方言;计数窗口统一使用 UTC 字符串。
statement := `CREATE TABLE IF NOT EXISTS notification_grant (