mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 15:43:49 +01:00
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.
7 lines
205 B
PL/PgSQL
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;
|