Skip to content

3.16.0 Migration fails #2441

Description

@JustinBack

Describe the bug
Updating from 3.15.2 to 3.16 fails at the migration due to the missing prisma.config.ts in the packages/prisma folder

typebot-builder-1  | - event [next-runtime-env] read environment variables prefixed with 'NEXT_PUBLIC_' from process.env.
typebot-builder-1  | - ready [next-runtime-env] wrote browser runtime environment variables to '/app/apps/builder/public/__ENV.js'.
typebot-builder-1  | Prisma schema loaded from packages/prisma/postgresql/schema.prisma.
typebot-builder-1  | Error: The datasource.url property is required in your Prisma config file when using prisma migrate deploy.

To Reproduce

  1. Update Instance
  2. See Error Log

Fix:

Copy the prisma.config.ts into the docker image at /app/packages/prisma/prisma.config.ts and define --config inside the entrypoint

node@ede2d1d0fbcf:/app$ ./node_modules/.bin/prisma migrate deploy --schema=packages/prisma/postgresql/schema.prisma --config packages/prisma/prisma.config.ts 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions