1. fix module schema error
2. add schema to version
This commit is contained in:
Jay 2019-01-09 11:59:50 +08:00
parent f66de3284a
commit 5c997f554b
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ type VersionInfo struct {
// ReadVersions -
func ReadVersions() (dbver DBVersion, err error) {
f, err := Asset("schema/dbVersion.db")
f, err := Asset("schema/dbVersion.json")
if err != nil {
return dbver, err
}

View File

@ -1,6 +1,7 @@
{
"versions": [
{"file": "main.sql", "version": 1}
{"file": "main.sql", "version": 1},
{"file": "20190106-1.sql", "version": 2}
],
"test": []
}