Merge pull request 'Agregar realtime' (#54) from issue/51-chats-de-ia-en-segundo-plano-para-asignaturas into main
Deploy Function / deploy (push) Successful in 26s
Deploy Migrations to Production / deploy (push) Successful in 11s

Reviewed-on: AlexRG/genesis-2#54
This commit was merged in pull request #54.
This commit is contained in:
2026-03-10 16:01:04 +00:00
@@ -0,0 +1,43 @@
drop view if exists "public"."plantilla_asignatura";
alter table "public"."asignaturas" drop column "criterios_de_evaluacion";
create or replace view "public"."plantilla_asignatura" as SELECT asignaturas.id AS asignatura_id,
struct.id AS estructura_id,
struct.template_id
FROM (public.asignaturas
JOIN public.estructuras_asignatura struct ON ((asignaturas.estructura_id = struct.id)));
grant delete on table "public"."asignatura_mensajes_ia" to "postgres";
grant insert on table "public"."asignatura_mensajes_ia" to "postgres";
grant references on table "public"."asignatura_mensajes_ia" to "postgres";
grant select on table "public"."asignatura_mensajes_ia" to "postgres";
grant trigger on table "public"."asignatura_mensajes_ia" to "postgres";
grant truncate on table "public"."asignatura_mensajes_ia" to "postgres";
grant update on table "public"."asignatura_mensajes_ia" to "postgres";
grant delete on table "public"."plan_mensajes_ia" to "postgres";
grant insert on table "public"."plan_mensajes_ia" to "postgres";
grant references on table "public"."plan_mensajes_ia" to "postgres";
grant select on table "public"."plan_mensajes_ia" to "postgres";
grant trigger on table "public"."plan_mensajes_ia" to "postgres";
grant truncate on table "public"."plan_mensajes_ia" to "postgres";
grant update on table "public"."plan_mensajes_ia" to "postgres";
alter publication supabase_realtime add table asignatura_mensajes_ia;
alter publication supabase_realtime add table plan_mensajes_ia;