20 lines
348 B
Go
20 lines
348 B
Go
package migrations
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
bindata "github.com/status-im/migrate/v4/source/go_bindata"
|
|
|
|
"github.com/status-im/status-go/sqlite"
|
|
)
|
|
|
|
// Migrate applies migrations.
|
|
func Migrate(db *sql.DB) error {
|
|
return sqlite.Migrate(db, bindata.Resource(
|
|
AssetNames(),
|
|
func(name string) ([]byte, error) {
|
|
return Asset(name)
|
|
},
|
|
))
|
|
}
|