#1029·pgroll

Spurious "table does not exist" errors applying simple migration.

Author: orpheusxCreated May 3, 2026Updated May 3, 2026
Labelsbugdocumentation

I tried using the discussions forum(see https://github.com/xataio/pgroll/discussions/1016) to ask for advice since I suspect this is a doc bug rather than something in the code. But no one seems to be reading any of the discussions.

For a seemingly simple migration like this: operations:

  - rename_column:
      table: scripts
      from: customer_id
      to: company_id

I run pgroll start migrations/0002_rename_scripts_customer_to_company.yaml

and get a unhelpful error: ERROR Failed to start migration: migration '0002_rename_scripts_customer_to_company' is invalid: table "scripts" does not exist

As detailed in the link above the user defined in my PGROLL_PG_URL var has the relevant schemas in its search_path.

I see evidence of other people (non-Xata) using pgroll so I must be missing something simple.