IO-1365 Update Messaging Issues.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[]
|
||||
15
hasura/migrations/1632265756746_run_sql_migration/up.yaml
Normal file
15
hasura/migrations/1632265756746_run_sql_migration/up.yaml
Normal 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$
|
||||
;
|
||||
Reference in New Issue
Block a user