I found the problem.
In my schema.sql I had all of my create table statements as:
CREATE TABLE public.xyz ..
but in my insert_user_local.sql I had only:
INSERT INTO user_detail(...
instead of public.user_detail. Just needed to be consistent with the schema naming convention.