@@ -111,7 +111,7 @@ func NewDB(dsn, app string) (*sql.DB, error) {
111
111
return db , nil
112
112
}
113
113
114
- // InjectVersionUpdate fixes the dirty state (set by golang-migrate) after a
114
+ // injectVersionUpdate fixes the dirty state (set by golang-migrate) after a
115
115
// successful migration. If the frontend starts a migration that will turn out
116
116
// to be successful but does not stay alive for the duration of the query due to
117
117
// 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) {
120
120
// once the migration is committed.
121
121
//
122
122
// 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 {
124
124
return func (name string ) ([]byte , error ) {
125
125
oldContents , err := f (name )
126
126
if err != nil {
@@ -132,7 +132,7 @@ func InjectVersionUpdate(f bindata.AssetFunc) bindata.AssetFunc {
132
132
}
133
133
134
134
func NewMigrationSourceLoader (dataSource string ) * bindata.AssetSource {
135
- return bindata .Resource (migrations .AssetNames (), InjectVersionUpdate (migrations .Asset ))
135
+ return bindata .Resource (migrations .AssetNames (), injectVersionUpdate (migrations .Asset ))
136
136
}
137
137
138
138
func NewMigrate (db * sql.DB , dataSource string ) (* migrate.Migrate , error ) {
0 commit comments