Chris Bitoy
04/28/2022, 3:28 PMnpx prisma studio
right after updating some fields in my model.schema
file. The error says:
Message: Error in Prisma Client request:
Could not parse URL of the datasource
Query:
{
"modelName": "User",
"operation": "findMany",
"args": {
"take": 100,
"skip": 0,
"select": {
"id": true,
"name": true,
"email": true,
"image": true,
"emailVerified": true,
"Role": true,
"accounts": true,
"profile": true,
"Program": true,
"sessions": true,
"profileId": true,
"Announcement": true,
"announcementId": true
}
}
}
//.env (data proxy setup)
MIGRATE_DATABASE_URL='<postgresql://me>...'
DATABASE_URL='<prisma://aws-us-east>...'
Steps to recreate error:
1. Updated schema file
2. Ran npx prisma db push
3. Ran npx prisma studio
Can you please help resolve?Nurul
04/28/2022, 3:36 PMChris Bitoy
04/28/2022, 3:39 PMThe migration `20220428153614_updated_erum_role` failed.
? We need to reset the PostgreSQL database "mentorsparlor-dat2....".
Do you want to continue? All data will be lost. › (y/N)
I dont want to resetChris Bitoy
04/28/2022, 3:40 PMNurul
04/28/2022, 3:46 PMChris Bitoy
04/28/2022, 3:49 PMprisma migrate dev or npx prisma db push
doesn’t update my table on https://cloud.prisma.io/Chris Bitoy
04/28/2022, 3:50 PMNurul
04/28/2022, 4:00 PMNurul
04/28/2022, 4:01 PMChris Bitoy
04/28/2022, 4:06 PMChris Bitoy
04/28/2022, 4:07 PM