Files
Erupe/schemas/patch-schema/29-guild-weekly-bonus.sql
Houmgaor 7932d8ac06 feat(guild): persist weekly bonus exceptional user count
The handler was a stub that discarded pkt.NumUsers. Now it
looks up the player's guild and atomically accumulates the
count via a new weekly_bonus_users column on the guilds table.
2026-02-21 00:42:16 +01:00

7 lines
122 B
PL/PgSQL

BEGIN;
ALTER TABLE IF EXISTS public.guilds
ADD COLUMN IF NOT EXISTS weekly_bonus_users INT NOT NULL DEFAULT 0;
END;