Skip to content

Migrations not being created with relations #664

@krishna-404

Description

@krishna-404

Getting below error and similar when creating migrations with custom schema mentioned. I think the relation should be "schema_name.table_name"

/Users/krishna404/codeProjects/shipmyapp/connected-repo/node_modules/pg/lib/client.
js:631
          Error.captureStackTrace(err)
                ^

error: relation "teams_app" does not exist
    at /Users/krishna404/codeProjects/shipmyapp/connected-repo/node_modules/pg/lib/
client.js:631:17
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 
{
  length: 107,
  severity: 'ERROR',
  code: '42P01',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'namespace.c',
  line: '437',
  routine: 'RangeVarGetRelidExtended'
}

Node.js v22.16.0
error Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions