src/org/nutz/dao/util/Daos.java
public static void migration(Dao dao,
                                 final Class<?> klass,
                                 final boolean add,
                                 final boolean del,
                                 final boolean checkIndex,
                                 final Object tableName) {
        migration(dao, dao.getEntity(klass), add, del, checkIndex, tableName);
    }
public static void migration(Dao dao,
                                 final Class<?> klass,
                                 final boolean add,
                                 final boolean del,
                                 final boolean checkIndex,
                                 final Object tableName) {
        migration(dao, dao.getEntity(klass), add, del, checkIndex, tableName);
    }
为数据表自动增减字段

@param dao
Dao实例
@param klass
映射Pojo
@param add
是否允许添加字段
@param del
是否允许删除字段
@param checkIndex
是否检查索引
@param tableName
动态表名上下文