mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-20 02:54:46 +00:00
commit
0485c759e7
|
|
@ -0,0 +1,15 @@
|
|||
/* Original: V008__Scoring.sql */
|
||||
CREATE OR REPLACE FUNCTION fn_avatar_addDebtEntry()
|
||||
RETURNS TRIGGER
|
||||
AS
|
||||
$$
|
||||
DECLARE newAvatarId Int;
|
||||
BEGIN
|
||||
newAvatarId := NEW.id;
|
||||
BEGIN
|
||||
INSERT INTO progressiondebt (avatar_id)
|
||||
VALUES (newAvatarId);
|
||||
END;
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
Loading…
Reference in a new issue