Flyway迁移状态`outOfOrder`?

时间:2017-04-20 20:51:35

标签: flyway

我最近在我的Flyway配置中启用了outOfOrder来解决一些合并冲突。  问题是当我运行migrate我的所有脚本都被执行时,状态显示为OutOfOrder

我想知道OutOfOrder是否意味着成功状态?

1 个答案:

答案 0 :(得分:1)

是的,这是一次成功应用的迁移。

有关详细信息,请参阅MigrationState#OUT_OF_ORDER

    /**
     * <p>This migration succeeded.</p>
     * <p>
     * This migration succeeded, but it was applied out of order.
     * Rerunning the entire migration history might produce different results!
     * </p>
     */
    OUT_OF_ORDER("OutOrdr", true, true, false)

   /**
     * Creates a new MigrationState.
     *
     * @param displayName The name suitable for display to the end-user.
     * @param resolved   Flag indicating if this migration is available on the classpath or not.
     * @param applied     Flag indicating if this migration has been applied or not.
     * @param failed      Flag indicating if this migration has failed when it was applied or not.
     */
    MigrationState(String displayName, boolean resolved, boolean applied, boolean failed) {