entc/gen: atlas:pos directive to views (#4400)

This commit is contained in:
Jannik Clausen
2025-06-04 08:42:49 +02:00
committed by GitHub
parent 21ecfa0872
commit 09fd57eb3e
2 changed files with 13 additions and 2 deletions

View File

@@ -793,7 +793,8 @@ func (g *Graph) Views() (views []*schema.Table, err error) {
continue
}
view := schema.NewView(n.Table()).
SetComment(n.sqlComment())
SetComment(n.sqlComment()).
SetPos(n.Pos())
switch ant := n.EntSQL(); {
case ant == nil:
case ant.Skip: