mirror of
https://github.com/pressly/goose.git
synced 2025-07-09 12:08:19 +00:00
Update documentation for GetDBVersion to match functionality
This commit is contained in:
parent
95600eb369
commit
90e476692d
@ -266,8 +266,7 @@ func createVersionTable(db *sql.DB) error {
|
||||
return txn.Commit()
|
||||
}
|
||||
|
||||
// GetDBVersion is a wrapper for EnsureDBVersion for callers that don't already
|
||||
// have their own DB instance
|
||||
// GetDBVersion is an alias for EnsureDBVersion, but returns -1 in error.
|
||||
func GetDBVersion(db *sql.DB) (int64, error) {
|
||||
version, err := EnsureDBVersion(db)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user