【问题标题】:Flyway migration status `outOfOrder`?航路迁移状态“outOfOrder”?
【发布时间】:2017-04-21 14:30:21
【问题描述】:

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

我想知道OutOfOrder 表示成功状态吗?

【问题讨论】:

    标签: flyway


    【解决方案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) {
    

    【讨论】:

      猜你喜欢
      • 2018-09-05
      • 1970-01-01
      • 1970-01-01
      • 2014-06-13
      • 2019-11-07
      • 2018-11-14
      • 2010-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多