Merge branch 'issue/63-aplicar-migraciones-de-asignatura' of https://github.lci.ulsa.mx/AlexRG/genesis-2 into issue/63-aplicar-migraciones-de-asignatura
Supa-backup / run_db_backup (pull_request) Successful in 33s
CI / test (pull_request) Failing after 36s
Deploy Function / deploy (pull_request) Successful in 23s
Deploy Migrations to Production / deploy (pull_request) Successful in 10s

This commit is contained in:
2026-03-17 15:14:29 -06:00
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ SET session_replication_role = replica;
-- PostgreSQL database dump
--
-- \restrict ttnggpznvlLcJtaeCiTEpnK1ZqJ4wavpabMcv9c5HZBVXZck84AytnG1NwuVDT1
-- \restrict 6Cf4iK10diISosVg2hdRUpy0MgQZ5gKzVh9zQXveexuc9Xk47WZ6YVy8I0vHvW5
-- Dumped from database version 17.6
-- Dumped by pg_dump version 17.6
@@ -2794,6 +2794,6 @@ SELECT pg_catalog.setval('"supabase_functions"."hooks_id_seq"', 11, true);
-- PostgreSQL database dump complete
--
-- \unrestrict ttnggpznvlLcJtaeCiTEpnK1ZqJ4wavpabMcv9c5HZBVXZck84AytnG1NwuVDT1
-- \unrestrict 6Cf4iK10diISosVg2hdRUpy0MgQZ5gKzVh9zQXveexuc9Xk47WZ6YVy8I0vHvW5
RESET ALL;
+24
View File
@@ -463,6 +463,24 @@ $$;
ALTER FUNCTION "public"."set_actualizado_en"() OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "public"."suma_porcentajes"("jsonb") RETURNS numeric
LANGUAGE "plpgsql" IMMUTABLE
AS $_$
declare
total numeric;
begin
select coalesce(sum((elem->>'porcentaje')::numeric),0)
into total
from jsonb_array_elements($1) elem;
return total;
end;
$_$;
ALTER FUNCTION "public"."suma_porcentajes"("jsonb") OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "public"."unaccent_immutable"("text") RETURNS "text"
LANGUAGE "sql" IMMUTABLE STRICT PARALLEL SAFE
AS $_$
@@ -1758,6 +1776,12 @@ GRANT ALL ON FUNCTION "public"."set_actualizado_en"() TO "service_role";
GRANT ALL ON FUNCTION "public"."suma_porcentajes"("jsonb") TO "anon";
GRANT ALL ON FUNCTION "public"."suma_porcentajes"("jsonb") TO "authenticated";
GRANT ALL ON FUNCTION "public"."suma_porcentajes"("jsonb") TO "service_role";
GRANT ALL ON FUNCTION "public"."unaccent"("text") TO "postgres";
GRANT ALL ON FUNCTION "public"."unaccent"("text") TO "anon";
GRANT ALL ON FUNCTION "public"."unaccent"("text") TO "authenticated";