package db import ( "fmt" clog "github.com/cherry-game/cherry/logger" ) // ver00002 测试用 type ver00002 struct { } // Version 手动自增,必需唯一 func (ver00002) Version() int32 { return 2 } func (ver00002) Enable() bool { return false } func (p ver00002) Execute() bool { clog.Infof("%s is ok. test2", p.Desc()) return true } func (p ver00002) Desc() string { return fmt.Sprintf("[migrator - %d] Check PlayerTable", p.Version()) }