MCPcopy Index your code
hub / github.com/TruthHun/BookStack / FindFirst

Method FindFirst

models/migrations.go:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (m *Migration) FindFirst() (*Migration, error) {
38 o := orm.NewOrm()
39
40 err := o.QueryTable(m.TableNameWithPrefix()).OrderBy("-migration_id").One(m)
41
42 return m, err
43}

Callers

nothing calls this directly

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected