mirror of
https://github.com/status-im/migrate.git
synced 2025-02-24 00:38:07 +00:00
commit
f0f8b2c85c
@ -25,7 +25,8 @@ func main() {
|
|||||||
return migrations.Asset(name)
|
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
|
m.Up() // run your migrations and handle the errors above of course
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user