mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
before this, changed table on trigger without fixing function called by trigger
This commit is contained in:
parent
2edb50eb03
commit
90c507eaca
1 changed files with 15 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue