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

@param dao
Dao实例
@param klass
映射Pojo
@param add
是否允许添加字段
@param del
是否允许删除字段
@param checkIndex
是否检查索引