Q044warning

Directive in the wrong file

An sgl.migration is in a query file, or an sgl.query is in a migration.

db/migrations/0003_gulls.up.sql:6:1: warning[Q044]: sgl.query is a query directive and is ignored in a migration file; use sgl.migration for migration directives
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

The directive is ignored.

How to fix it

Move it to the right kind of file.

In your terminal

$ sgl explain Q044

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