From ce9c0cf3e654f872ecf4b9bca1e402c3bb5aa0e4 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Thu, 12 Feb 2026 09:38:48 -0600 Subject: [PATCH] Remove unused SQL migration files for cleaner project structure --- local_como_remoto.sql | Bin 2096 -> 0 bytes remoto_como_local.sql | 126 ------------------------------------------ 2 files changed, 126 deletions(-) delete mode 100644 local_como_remoto.sql delete mode 100644 remoto_como_local.sql diff --git a/local_como_remoto.sql b/local_como_remoto.sql deleted file mode 100644 index b4fd5dd216a7ec2dfb1a167fe2cebf71da7d1d74..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2096 zcmdUwO^*^m5Qgh);(wSB5+K=-cwOURMc80~B`jXNka1v@xG>1Ts()U6-fD&!ko5yk zhBVXFRbAip_V;hG-P^`ywzi1xS6i`{piBgp=47aOY4Jq}SY8 z`kC%-IF*Le@)Pc-=$-O?aJ!l7SwidP1idrCm*V28Yhpb$7Y$K?F-J-X} z3Od`+W6ocdwBB$sD$y;dHZu9Gnl(zfIILdm6??3H<*H>wqzugMy;p8S7S^0ph^(wL z@meWEOE`H&&+nA2+gxI`&~|B;Udu21YyUUBS9C?$>kToecmFgKD`aCL{C}g*r{%oL z{QFF1aNt!hqIm1lL1{qg%Ypm zgKPK<=TxWUwUpI+uj>R1Dc4uFBPOrSl(&82qrF6vTT{4K@Qc%ld#o9e_rfSiT{s#^ zmwp*>u8~l@hguYE!3%TtdksRj#m+D7!wq3zu-9>v=tI?!DzLh_k41KmJuhM^G)doU z5T^@1iC@-r%6DnaGkO?zj($|xsaa~vE~GuavO zFJv52MWLfkJ7D*~D;f~?I2!e1Ooh}(OKPH=F8FQP=ZH~fKQm!bV^?2U(W@|W{MLj8 ze#oG#5A51sjcfNJvrohxxLw|iK0KlPOYgVH-vzw}J*Rv4eGAp`yLt~s{zi;lL+Hcm iPqS3r_ugS2A4jNH?f5LbNmYBc&+%jW3v^X9T0a1hyH)f6 diff --git a/remoto_como_local.sql b/remoto_como_local.sql deleted file mode 100644 index beff8b3..0000000 --- a/remoto_como_local.sql +++ /dev/null @@ -1,126 +0,0 @@ - - create table "public"."tabla_prueba" ( - "id" bigint generated by default as identity not null, - "created_at" timestamp with time zone not null default now(), - "columna_prueba" text - ); - - -alter table "public"."tabla_prueba" enable row level security; - -CREATE UNIQUE INDEX tabla_prueba_pkey ON public.tabla_prueba USING btree (id); - -alter table "public"."tabla_prueba" add constraint "tabla_prueba_pkey" PRIMARY KEY using index "tabla_prueba_pkey"; - -set check_function_bodies = off; - -CREATE OR REPLACE FUNCTION public.set_actualizado_en() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ -begin - new.actualizado_en = now(); - return new; -end; -$function$ -; - -CREATE OR REPLACE FUNCTION public.unaccent_immutable(text) - RETURNS text - LANGUAGE sql - IMMUTABLE PARALLEL SAFE STRICT -AS $function$ - SELECT public.unaccent('public.unaccent', $1); -$function$ -; - -CREATE OR REPLACE FUNCTION public.validar_numero_ciclo_asignatura() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ -declare - v_numero_ciclos int; -begin - if new.numero_ciclo is null then - return new; - end if; - - select pe.numero_ciclos into v_numero_ciclos - from planes_estudio pe - where pe.id = new.plan_estudio_id; - - if v_numero_ciclos is null then - raise exception 'plan_estudio_id inválido %, plan no encontrado', new.plan_estudio_id; - end if; - - if new.numero_ciclo < 1 then - raise exception 'numero_ciclo debe ser >= 1 (recibido %)', new.numero_ciclo; - end if; - - if new.numero_ciclo > v_numero_ciclos then - raise exception 'numero_ciclo % excede planes_estudio.numero_ciclos % para plan_estudio_id %', - new.numero_ciclo, v_numero_ciclos, new.plan_estudio_id; - end if; - - return new; -end; -$function$ -; - -grant delete on table "public"."tabla_prueba" to "anon"; - -grant insert on table "public"."tabla_prueba" to "anon"; - -grant references on table "public"."tabla_prueba" to "anon"; - -grant select on table "public"."tabla_prueba" to "anon"; - -grant trigger on table "public"."tabla_prueba" to "anon"; - -grant truncate on table "public"."tabla_prueba" to "anon"; - -grant update on table "public"."tabla_prueba" to "anon"; - -grant delete on table "public"."tabla_prueba" to "authenticated"; - -grant insert on table "public"."tabla_prueba" to "authenticated"; - -grant references on table "public"."tabla_prueba" to "authenticated"; - -grant select on table "public"."tabla_prueba" to "authenticated"; - -grant trigger on table "public"."tabla_prueba" to "authenticated"; - -grant truncate on table "public"."tabla_prueba" to "authenticated"; - -grant update on table "public"."tabla_prueba" to "authenticated"; - -grant delete on table "public"."tabla_prueba" to "postgres"; - -grant insert on table "public"."tabla_prueba" to "postgres"; - -grant references on table "public"."tabla_prueba" to "postgres"; - -grant select on table "public"."tabla_prueba" to "postgres"; - -grant trigger on table "public"."tabla_prueba" to "postgres"; - -grant truncate on table "public"."tabla_prueba" to "postgres"; - -grant update on table "public"."tabla_prueba" to "postgres"; - -grant delete on table "public"."tabla_prueba" to "service_role"; - -grant insert on table "public"."tabla_prueba" to "service_role"; - -grant references on table "public"."tabla_prueba" to "service_role"; - -grant select on table "public"."tabla_prueba" to "service_role"; - -grant trigger on table "public"."tabla_prueba" to "service_role"; - -grant truncate on table "public"."tabla_prueba" to "service_role"; - -grant update on table "public"."tabla_prueba" to "service_role"; - -