增加SQL子版本

This commit is contained in:
刘祥超
2022-03-14 16:06:25 +08:00
parent c1ffd25c8b
commit d2ae7834ae
5 changed files with 39 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ package setup
import (
"encoding/json"
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
"github.com/TeaOSLab/EdgeAPI/internal/errors"
"github.com/TeaOSLab/EdgeCommon/pkg/dnsconfigs"
@@ -113,7 +112,7 @@ func (this *SQLExecutor) checkData(db *dbs.DB) error {
}
// 更新版本号
err = this.updateVersion(db, teaconst.Version)
err = this.updateVersion(db, ComposeSQLVersion())
if err != nil {
return err
}