mirror of
https://github.com/status-im/migrate.git
synced 2025-02-23 16:28:08 +00:00
commit
f0f8b2c85c
@ -24,8 +24,9 @@ func main() {
|
||||
func(name string) ([]byte, error) {
|
||||
return migrations.Asset(name)
|
||||
})
|
||||
|
||||
m, err := migrate.NewWithSourceInstance("go-bindata", s, "database://foobar")
|
||||
|
||||
d, err := bindata.WithInstance(s)
|
||||
m, err := migrate.NewWithSourceInstance("go-bindata", d, "database://foobar")
|
||||
m.Up() // run your migrations and handle the errors above of course
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user