(t TestingT, c *ent.Client, o *options)
| 72 | return c |
| 73 | } |
| 74 | func 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 | } |