Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 6e1ed36

Browse files
committed
unexport
1 parent f342c50 commit 6e1ed36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/db/dbutil/dbutil.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func NewDB(dsn, app string) (*sql.DB, error) {
111111
return db, nil
112112
}
113113

114-
// InjectVersionUpdate fixes the dirty state (set by golang-migrate) after a
114+
// injectVersionUpdate fixes the dirty state (set by golang-migrate) after a
115115
// successful migration. If the frontend starts a migration that will turn out
116116
// to be successful but does not stay alive for the duration of the query due to
117117
// a startup timeout, there will be no chance to set the new version or unset
@@ -120,7 +120,7 @@ func NewDB(dsn, app string) (*sql.DB, error) {
120120
// once the migration is committed.
121121
//
122122
// See https://github.com/golang-migrate/migrate/issues/325.
123-
func InjectVersionUpdate(f bindata.AssetFunc) bindata.AssetFunc {
123+
func injectVersionUpdate(f bindata.AssetFunc) bindata.AssetFunc {
124124
return func(name string) ([]byte, error) {
125125
oldContents, err := f(name)
126126
if err != nil {
@@ -132,7 +132,7 @@ func InjectVersionUpdate(f bindata.AssetFunc) bindata.AssetFunc {
132132
}
133133

134134
func NewMigrationSourceLoader(dataSource string) *bindata.AssetSource {
135-
return bindata.Resource(migrations.AssetNames(), InjectVersionUpdate(migrations.Asset))
135+
return bindata.Resource(migrations.AssetNames(), injectVersionUpdate(migrations.Asset))
136136
}
137137

138138
func NewMigrate(db *sql.DB, dataSource string) (*migrate.Migrate, error) {

0 commit comments

Comments
 (0)