flyway如何对版本号进行排序? [英] How does flyway sort version numbers?

查看:297
本文介绍了flyway如何对版本号进行排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们有以下迁移:

V1_6__six.sql
V1_7__seven.sql
V1_8__eight.sql
V1_9__nine.sql

下一个版本应该使用什么?

What should we use for the next version?

如果使用V1_10,会在V1__9之后吗?还是我们需要在单位数版本号之前加上0?

If we use V1_10 will that come after V1__9? Or would we need to prefix the single digit version numbers with a 0?

真正的问题是:版本号是按数字还是按字母顺序排序的?

Really the question is: are version numbers sorted numerically or alphabetically?

推荐答案

一个词:数字.正如预期的那样.

In one word: numerically. As would be expected for a number.

这篇关于flyway如何对版本号进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆