IO-1349 Update Hasura to 2.0.9.
This commit is contained in:
11
hasura/migrations/1632265756746_run_sql_migration/up.sql
Executable file
11
hasura/migrations/1632265756746_run_sql_migration/up.sql
Executable file
@@ -0,0 +1,11 @@
|
||||
|
||||
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