数据库升级时表名不区分大小写/增加一些注释

This commit is contained in:
刘祥超
2021-04-18 16:32:08 +08:00
parent 7217785c58
commit 9eb2cce860
4 changed files with 10 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ func NewSQLDump() *SQLDump {
return &SQLDump{}
}
// 导出数据
// Dump 导出数据
func (this *SQLDump) Dump(db *dbs.DB) (result *SQLDumpResult, err error) {
result = &SQLDumpResult{}
@@ -107,7 +107,7 @@ func (this *SQLDump) Dump(db *dbs.DB) (result *SQLDumpResult, err error) {
return
}
// 应用数据
// Apply 应用数据
func (this *SQLDump) Apply(db *dbs.DB, newResult *SQLDumpResult) (ops []string, err error) {
currentResult, err := this.Dump(db)
if err != nil {