export const customAccessTokenHook = async () => { await db.execute(sql` CREATE OR REPLACE FUNCTION public.custom_access_token_hook(event jsonb) RETURNS jsonb LANGUAGE plpgsql AS $$ BEGIN // do stuff here END; $$; `);};
export const customAccessTokenHook = async () => { await db.execute(sql` CREATE OR REPLACE FUNCTION public.custom_access_token_hook(event jsonb) RETURNS jsonb LANGUAGE plpgsql AS $$ BEGIN // do stuff here END; $$; `);};
However when I run
drizzle-kit generate
drizzle-kit generate
it only runs the table creation and not the other file Here's my drizzle.config.ts