MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / migrateSchema

Function migrateSchema

app/controlplane/pkg/data/ent/enttest/enttest.go:74–84  ·  view source on GitHub ↗
(t TestingT, c *ent.Client, o *options)

Source from the content-addressed store, hash-verified

72 return c
73}
74func migrateSchema(t TestingT, c *ent.Client, o *options) {
75 tables, err := schema.CopyTables(migrate.Tables)
76 if err != nil {
77 t.Error(err)
78 t.FailNow()
79 }
80 if err := migrate.Create(context.Background(), c.Schema, tables, o.migrateOpts...); err != nil {
81 t.Error(err)
82 t.FailNow()
83 }
84}

Callers 2

OpenFunction · 0.85
NewClientFunction · 0.85

Calls 3

CreateFunction · 0.92
FailNowMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected