()
| 60 | } |
| 61 | |
| 62 | func (h *Store[H]) OnComplete() { |
| 63 | |
| 64 | onceMigrate(h.name, func() { |
| 65 | db := h.db.DB(context.Background()) |
| 66 | |
| 67 | err := db.Table(h.commitTableName).AutoMigrate(&Commit[H]{}) |
| 68 | if err != nil { |
| 69 | panic(err) |
| 70 | } |
| 71 | err = db.Table(h.latestTableName).AutoMigrate(&Latest{}) |
| 72 | if err != nil { |
| 73 | panic(err) |
| 74 | } |
| 75 | }) |
| 76 | |
| 77 | } |
| 78 | |
| 79 | var ( |
| 80 | latestUniques = []clause.Column{ |
nothing calls this directly
no test coverage detected