-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-hosting migration fails if not using the default "public" schema #886
Comments
code: 'P2010', clientVersion: '5.4.1', meta: { code: '42P01', message: 'relation "public.JobRun" does not exist' } } |
and migration which fails if project hosted in custom schema eg "triggerdotdev" |
Good spot, a fix for this has been pushed to main. I'm creating another |
Ah shit I didn't spot the migration |
@swag42dev unfortunately it's not going to be easy to fix that migration. It's already been applied and just editing the file isn't an option as that causes an out-of-sync issue which would wipe everyone's databases when deploying. There are complicated options Prisma offers but I'm not clear on the best approach at the moment. I think you can manually resolve for yourself by doing this:
prisma migrate resolve --applied "20240130165343_add_composite_index_to_job_run_for_job_id_and_created_at"
CREATE INDEX idx_jobrun_jobId_createdAt ON "JobRun" ("jobId", "createdAt" DESC); Sorry about this. That migration was auto-generated by Prisma when I used their @@Index notation… 😠 |
@matt-aitken no problem. i already fix migration. thank you for quick fix |
This is and extremely annoying and causing issues with deploying on ECS that:
|
There's a more up to date issue on this with a better temporary fix: #1026 |
trigger.dev/apps/webapp/app/presenters/JobListPresenter.server.ts
Line 125 in 336029b
The text was updated successfully, but these errors were encountered: