Files
Erupe/schemas/patch-schema/28-guild-posts-soft-delete.sql
Houmgaor 9832f68f1c 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.
2026-02-18 13:57:49 +01:00

7 lines
205 B
PL/PgSQL

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;