status-go/multiaccounts/migrations/migrate.go

21 lines
451 B
Go
Raw Permalink Normal View History

package migrations
import (
"database/sql"
bindata "github.com/status-im/migrate/v4/source/go_bindata"
2020-01-02 09:10:19 +00:00
"github.com/status-im/status-go/sqlite"
)
// Migrate applies migrations.
// see Migrate in vendor/status-go/sqlite/migrate.go
func Migrate(db *sql.DB, customSteps []*sqlite.PostStep) error {
return sqlite.Migrate(db, bindata.Resource(
AssetNames(),
func(name string) ([]byte, error) {
return Asset(name)
},
), customSteps, nil)
}