package db import ( cherryApp "f1-game/internal/cherry_app" "fmt" clog "github.com/cherry-game/cherry/logger" ) // ver00001 测试用 type ver00001 struct { } // Version 手动自增,必需唯一 func (ver00001) Version() int32 { return 1 } func (ver00001) Enable() bool { return false } func (p ver00001) Execute() bool { clog.Infof("Execute %v, [nodeID = %s, dbName = %s]", p.Version(), cherryApp.NodeID(), dbComponent.DB().Name()) return true } func (p ver00001) Desc() string { return fmt.Sprintf("[migrator - %d] Check PlayerTable", p.Version()) }