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