hello. I have a noob question where I ran the migr...
# orm-help
a
hello. I have a noob question where I ran the migrate successfully for a model Album. When trying to use the prisma client, I can get as far as
(new PrismaClient()).album
but when chaining
.findMany()
after that I get an exception
The table 'public.Album' does not exist in the current database.
, which doesn't make sense since I have checked on both the remote postgres db and the remote postgres shadow db and both have a public Album table. Any help is much appreciated
n
Hey Alan 👋 Did you regenerate
PrismaClient
after running migrate? It may happen that your PrismaClient is not in sync with your database schema. Can you run
npx prisma generate
and check?