mirror of https://github.com/pressly/goose.git
Merge pull request #106 from ollien/master
Update documentation for GetDBVersion to match functionalitypull/103/merge
commit
a4bf952640
|
@ -266,8 +266,7 @@ func createVersionTable(db *sql.DB) error {
|
||||||
return txn.Commit()
|
return txn.Commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDBVersion is a wrapper for EnsureDBVersion for callers that don't already
|
// GetDBVersion is an alias for EnsureDBVersion, but returns -1 in error.
|
||||||
// have their own DB instance
|
|
||||||
func GetDBVersion(db *sql.DB) (int64, error) {
|
func GetDBVersion(db *sql.DB) (int64, error) {
|
||||||
version, err := EnsureDBVersion(db)
|
version, err := EnsureDBVersion(db)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue