()
| 155 | } |
| 156 | |
| 157 | func (m Migration) VersionInt() int64 { |
| 158 | v := m.NumberPrefixMatches()[1] |
| 159 | value, err := strconv.ParseInt(v, 10, 64) |
| 160 | if err != nil { |
| 161 | panic(fmt.Sprintf("Could not parse %q into int64: %s", v, err)) |
| 162 | } |
| 163 | return value |
| 164 | } |
| 165 | |
| 166 | type PlannedMigration struct { |
| 167 | *Migration |
no test coverage detected