Q037error

Override names a missing table column

A column type override, in sgl.yaml or an sgl.column in a migration, names a table.column that does not exist.

sgl.yaml: error[Q037]: type override references unknown column "authors.nickname"
help: did you mean "authors.name"?
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

Schema-wide overrides are declared as table.column. The diagnostic suggests the closest known column.

How to fix it

Fix the table or column name.

See it in an example

In your terminal

$ sgl explain Q037

Look for UnknownOverrideMigrationColumn in Seagull's source to see where it is reported.