src/org/nutz/dao/util/Daos.java
public static void migration(Dao dao,
                                 String packageName,
                                 boolean add,
                                 boolean del,
                                 boolean checkIndex,
                                 Object nameTable) {
        for (Class<?> klass : Scans.me().scanPackage(packageName)) {
            if (Mirror.me(klass).getAnnotation(Table.class) != null) {
                migration(dao, klass, add, del, checkIndex, nameTable);
            }
        }
    }
public static void migration(Dao dao,
                                 String packageName,
                                 boolean add,
                                 boolean del,
                                 boolean checkIndex,
                                 Object nameTable) {
        for (Class<?> klass : Scans.me().scanPackage(packageName)) {
            if (Mirror.me(klass).getAnnotation(Table.class) != null) {
                migration(dao, klass, add, del, checkIndex, nameTable);
            }
        }
    }
为指定package及旗下package中带@Table注解的Pojo执行migration

@param dao
Dao实例
@param packageName
指定的package名称
@param add
是否允许添加字段
@param del
是否允许删除字段
@param checkIndex
是否检查索引
@param nameTable
动态表名上下文