Interface MigrateCallback

All Known Implementing Classes:
MultiMigrateCallback

public interface MigrateCallback
迁移回调
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    after(int version, RawSQLExecutor executor)
    迁移后调用
    void
    before(int version, RawSQLExecutor executor)
    迁移前调用
  • Method Details

    • before

      void before(int version, RawSQLExecutor executor) throws Exception
      迁移前调用
      Parameters:
      version - 准备迁移的版本
      executor - 原生SQL执行器
      Throws:
      Exception - 迁移异常
    • after

      void after(int version, RawSQLExecutor executor) throws Exception
      迁移后调用
      Parameters:
      version - 迁移完成的版本
      executor - 原生SQL执行器
      Throws:
      Exception - 迁移异常