PrismaP
Prisma2y ago
10 replies
Anonymous

multiSchema variable

Hi all, im trying to use .env to replace schemas value

datasource db { provider = "postgresql" url = env("DATABASE_URL") schemas = ["base", "transactional"] }

change to
datasource db { provider = "postgresql" url = env("DATABASE_URL") schemas = [env("db")] }

but i got the error Expected a string value, but received functional value env("db").

any idea for this?
Was this page helpful?