Remove version

This commit is contained in:
Lunny Xiao 2020-03-08 13:43:29 +08:00
parent a374b047b1
commit 60eed6608a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 3 additions and 8 deletions

View File

@ -367,8 +367,8 @@ func (engine *Engine) dumpTables(tables []*schemas.Table, w io.Writer, tp ...sch
distDBName = string(tp[0])
}
_, err := io.WriteString(w, fmt.Sprintf("/*Generated by xorm v%s %s, from %s to %s*/\n\n",
Version, time.Now().In(engine.TZLocation).Format("2006-01-02 15:04:05"), engine.dialect.URI().DBType, strings.ToUpper(distDBName)))
_, err := io.WriteString(w, fmt.Sprintf("/*Generated by xorm %s, from %s to %s*/\n\n",
time.Now().In(engine.TZLocation).Format("2006-01-02 15:04:05"), engine.dialect.URI().DBType, strings.ToUpper(distDBName)))
if err != nil {
return err
}

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.8
// +build go1.11
package xorm
@ -20,11 +20,6 @@ import (
"xorm.io/xorm/tags"
)
const (
// Version show the xorm's version
Version string = "0.8.0.1015"
)
func close(engine *Engine) {
engine.Close()
}