fix: soft-delete guild posts instead of hard-deleting

Use a `deleted` boolean column (matching characters and mail tables)
instead of permanently removing guild_posts rows. This makes excess
post purging and manual deletion reversible.
This commit is contained in:
Houmgaor
2026-02-18 13:57:49 +01:00
parent e353906e1c
commit 9832f68f1c
2 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
BEGIN;
-- Add soft-delete column to guild_posts, matching the pattern used by characters and mail tables.
ALTER TABLE guild_posts ADD COLUMN IF NOT EXISTS deleted boolean DEFAULT false NOT NULL;
COMMIT;