mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
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:
6
schemas/patch-schema/28-guild-posts-soft-delete.sql
Normal file
6
schemas/patch-schema/28-guild-posts-soft-delete.sql
Normal 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;
|
||||
Reference in New Issue
Block a user