MCPcopy
hub / github.com/rubenv/sql-migrate / VersionInt

Method VersionInt

migrate.go:157–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (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
166type PlannedMigration struct {
167 *Migration

Callers 2

LessMethod · 0.95
planMigrationCommonMethod · 0.80

Calls 1

NumberPrefixMatchesMethod · 0.95

Tested by

no test coverage detected