mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-19 18:14:44 +00:00
before this, changed table on trigger without fixing function called by trigger
This commit is contained in:
parent
2edb50eb03
commit
90c507eaca
|
|
@ -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