fix: add server_name to moderation_actions for full context retention

Denormalize guild name alongside username so the moderation dashboard
shows both TARGET and server even after message table purges.
Migration 0018. Frontend displays 'username · server_name' in TARGET.
This commit is contained in:
asepharyana committed 2026-08-27 12:32:12 +07:00
1 parent cccfd89266
commit 0de393625f
10 files changed
+30 -2

No files matched your search

@@ -0,0 +1 @@
ALTER TABLE "moderation_actions" ADD COLUMN "server_name" text;
@@ -127,6 +127,13 @@
"when": 1787810000000,
"tag": "0017_add_username_to_moderation_actions",
"breakpoints": true
},
{
"idx": 18,
"version": "7",
"when": 1787820000000,
"tag": "0018_add_server_name_to_moderation_actions",
"breakpoints": true
}
]
}