Fixed issues in README and documentation

This commit is contained in:
Nise Void 2016-10-21 22:48:11 +02:00
parent 358fed43ea
commit adc0a5ad10
2 changed files with 22 additions and 5 deletions

View file

@ -29,7 +29,8 @@ const fileFormat = `%04d.sql`
// AssetFunc is a function that returns the data for the given name
type AssetFunc func(string) ([]byte, error)
// Migrate executes
// Migrate executes migrations to get to the desired version
// Downgrading is not supported as it could result in data loss
func Migrate(db *sql.DB, version int, o Options, asset AssetFunc) error {
if o.TableName == `` {
o.TableName = DefaultTableName