ver_00002.go 458 B

1234567891011121314151617181920212223242526272829
  1. package db
  2. import (
  3. "fmt"
  4. clog "github.com/cherry-game/cherry/logger"
  5. )
  6. // ver00002 测试用
  7. type ver00002 struct {
  8. }
  9. // Version 手动自增,必需唯一
  10. func (ver00002) Version() int32 {
  11. return 2
  12. }
  13. func (ver00002) Enable() bool {
  14. return false
  15. }
  16. func (p ver00002) Execute() bool {
  17. clog.Infof("%s is ok. test2", p.Desc())
  18. return true
  19. }
  20. func (p ver00002) Desc() string {
  21. return fmt.Sprintf("[migrator - %d] Check PlayerTable", p.Version())
  22. }