Skip to content

Migrations failing if enum types exist in different schemas #191

@Stealthwriter

Description

@Stealthwriter

I'm getting this error while I start the server, what could be the issue? and how to fix it please?

{"level":"error","time":"2025-09-17T07:50:23.364Z","pid":1,"hostname":"b2a0c7bbbffa","err":{"type":"Error","message":"Migration failed. Reason: An error occurred running 'prices'. Rolled back this migration. No further migrations were run. Reason: type \"stripe.pricing_type\" does not exist","stack":"Error: Migration failed. Reason: An error occurred running 'prices'. Rolled back this migration. No further migrations were run. Reason: type \"stripe.pricing_type\" does not exist\n at /app/node_modules/.pnpm/pg-node-migrations@0.0.8/node_modules/pg-node-migrations/dist/migrate.js:108:27\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async /app/node_modules/.pnpm/pg-node-migrations@0.0.8/node_modules/pg-node-migrations/dist/with-lock.js:25:28\n at async connectAndMigrate (/app/packages/sync-engine/dist/index.cjs:2000:5)\n at async runMigrations (/app/packages/sync-engine/dist/index.cjs:2018:5)","cause":"An error occurred running 'prices'. Rolled back this migration. No further m

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions