From 389fdcd84dc46a9afadf6aee9b99cc59e5cc759d Mon Sep 17 00:00:00 2001 From: h8570rg Date: Sun, 22 Dec 2024 18:55:44 +0900 Subject: [PATCH] fix: rm fn --- lib/database.types.ts | 8 +------- supabase/migrations/20240616142344_local.sql | 7 ------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/database.types.ts b/lib/database.types.ts index d2fa82c..d4b3d37 100644 --- a/lib/database.types.ts +++ b/lib/database.types.ts @@ -203,7 +203,6 @@ export type Database = { display_id: string | null; id: string; name: string | null; - name_janreco_id: string | null; }; Insert: { display_id?: string | null; @@ -295,12 +294,7 @@ export type Database = { [_ in never]: never; }; Functions: { - name_janreco_id: { - Args: { - "": unknown; - }; - Returns: string; - }; + [_ in never]: never; }; Enums: { [_ in never]: never; diff --git a/supabase/migrations/20240616142344_local.sql b/supabase/migrations/20240616142344_local.sql index c5b1154..2fe91d7 100644 --- a/supabase/migrations/20240616142344_local.sql +++ b/supabase/migrations/20240616142344_local.sql @@ -170,13 +170,6 @@ end; $function$ ; -CREATE OR REPLACE FUNCTION public.name_janreco_id(profiles) - RETURNS text - LANGUAGE sql - IMMUTABLE -AS $function$select $1.name || ' ' || $1.janreco_id;$function$ -; - grant delete on table "public"."friends" to "anon"; grant insert on table "public"."friends" to "anon";