-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
[TRI-1948] Self-hosting: non-public schemas will fail on the initial db migrations #1026
Comments
A temporary workaround for new docker deploys: (do NOT use for existing deploys!) services:
triggerdotdev:
# These values may differ in your deploy
image: ghcr.io/triggerdotdev/trigger.dev:latest
container_name: triggerdotdev
restart: always
env_file:
- .env
ports:
- 3030:3030
depends_on:
- triggerdotdev-database
networks:
- app_network
# This is the important bit!
command:
- sh
- -c
- sed -i s/public/triggerdotdev/ ./packages/database/prisma/migrations/20240130165343_add_composite_index_to_job_run_for_job_id_and_created_at/migration.sql && ./scripts/entrypoint.sh |
This was referenced Jun 11, 2024
Closed
Up - would be great to find a solution to this problem soon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A migration was accidentally added that had a hard-coded reference to "public". We can't just remove that because it will cause a mismatch between the applied migrations table hash and the migration files.
Potential fix
db migrate deploy
in shell startup script.From SyncLinear.com | TRI-1948
The text was updated successfully, but these errors were encountered: