Abhinav kumar
03/10/2023, 6:14 AMprisma.eventType.findUniqueOrThrow()
invocation:\n\n\nThe column Host.id
does not exist in the current database."
}Duncan Colville
03/10/2023, 6:53 AMHost
model in your Prisma schema references a column that does not exist in the database. This could happen if you made changes to your schema but have not yet run a migration to update the database schema accordingly.
To fix this issue, you should:
1. Update your Prisma schema to remove the reference to the missing Host.id
column, or modify the schema to add the Host.id
column if it is missing.
2. Run a migration to update the database schema to match the changes in your Prisma schema.
To perform a migration in Prisma, follow these steps:
1. Open a terminal window and navigate to the root directory of your Prisma project.
2. Run the command npx prisma migrate dev
to create a new migration script based on the changes in your Prisma schema.
3. Once the migration script has been generated, run the command npx prisma migrate deploy
to apply the changes to the database.
Once the migration is complete, you should be able to make API requests to your Cal.com API without seeing the error message you reported.