IO-1365 Update Messaging Issues.

This commit is contained in:
Patrick Fic
2021-09-21 17:33:39 -07:00
parent c64c49ab6e
commit 186ad2d7a2
10 changed files with 80 additions and 26 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,15 @@
- type: run_sql
args:
cascade: false
read_only: false
sql: |-
CREATE OR REPLACE FUNCTION public.update_conversation_on_message()
RETURNS trigger
LANGUAGE plpgsql
AS $function$
BEGIN
UPDATE conversations SET updated_at = now() WHERE id = NEW.conversationid;
RETURN NEW;
END;
$function$
;