SpringBoot配置属性之Migration
SpringBoot配置属性系列
另外附上个人关于springboot的一些文章
序
SpringBoot支持了两种数据库迁移工具,一个是flyway,一个是liquibase。其本身也支持sql script,在初始化数据源之后执行指定的脚本。
flyway
flyway.baseline-description
对执行迁移时基准版本的描述.flyway.baseline-on-migrate
当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移,默认false.flyway.baseline-version
开始执行基准迁移时对现有的schema的版本打标签,默认值为1.flyway.check-location
检查迁移脚本的位置是否存在,默认false.flyway.clean-on-validation-error
当发现校验错误时是否自动调用clean,默认false.flyway.enabled
是否开启flywary,默认true.flyway.encoding
设置迁移时的编码,默认UTF-8.flyway.ignore-failed-future-migration
当读取元数据表时是否忽略错误的迁移,默认false.flyway.init-sqls
当初始化好连接时要执行的SQL.flyway.locations
迁移脚本的位置,默认db/migration.flyway.out-of-order
是否允许无序的迁移,默认false.flyway.password
目标数据库的密码.flyway.placeholder-prefix
设置每个placeholder的前缀,默认${.flyway.placeholder-replacement
placeholders是否要被替换,默认true.flyway.placeholder-suffix
设置每个placeholder的后缀,默认}.flyway.placeholders.[placeholder name]
设置placeholder的valueflyway.schemas
设定需要flywary迁移的schema,大小写敏感,默认为连接默认的schema.flyway.sql-migration-prefix
迁移文件的前缀,默认为V.flyway.sql-migration-separator
迁移脚本的文件名分隔符,默认__flyway.sql-migration-suffix
迁移脚本的后缀,默认为.sqlflyway.table
flyway使用的元数据表名,默认为schema_versionflyway.target
迁移时使用的目标版本,默认为latest versionflyway.url
迁移时使用的JDBC URL,如果没有指定的话,将使用配置的主数据源flyway.user
迁移数据库的用户名flyway.validate-on-migrate
迁移时是否校验,默认为true.
liquibase
liquibase.change-log
Change log 配置文件的路径,默认值为classpath:/db/changelog/db.changelog-master.yamlliquibase.check-change-log-location
是否坚持change log的位置是否存在,默认为true.liquibase.contexts
逗号分隔的运行时context列表.liquibase.default-schema
默认的schema.liquibase.drop-first
是否首先drop schema,默认为falseliquibase.enabled
是否开启liquibase,默认为true.liquibase.password
目标数据库密码liquibase.url
要迁移的JDBC URL,如果没有指定的话,将使用配置的主数据源.liquibase.user
目标数据用户名
SpringBoot配置属性之Migration的更多相关文章
- SpringBoot配置属性之Server
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性转载地址
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之其他
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之Security
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MQ
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之NOSQL
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性之MVC
SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...
- SpringBoot配置属性二
server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...
- SpringBoot配置属性之Server参数
server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...
随机推荐
- ZooKeeper 了解
- 关于ThinkPhp中getField方法存在的问题
在ThinkPhp中我们可以通过以下方式获取数据库数据 query:直接执行SQL查询操作 find:查询单选数据集 getField查询字段值 select:查询数据集 其他...... 但今天 ...
- Python操作记录
1.写入中文出错,需要执行 reload(sys) sys.setdefaultencoding('utf8') 2.json.dump中文写入为\xxxx ensure_ascii=False
- (纪录片)鸟瞰中国 China from Above
简介: 类型: 纪录片官方网站: natgeotv.com/uk/china-from-above制片国家/地区: 美国语言: 英语集数: 2单集片长: 44分钟IMDb链接: tt4872012 主 ...
- 老周发布 UWP 应用的隐私策略(通用)
UWP 应用隐私策略 前注 本声明通用于老周所发布的所有 UWP 应用,下文简称“应用”.开发者全称:周家安,下文简称“老周”. 1.免责声明 您在使用应用过程中,请遵守<中华人民共和国宪法& ...
- 求两个有序数组的中位数或者第k小元素
问题:两个已经排好序的数组,找出两个数组合并后的中位数(如果两个数组的元素数目是偶数,返回上中位数). 设两个数组分别是vec1和vec2,元素数目分别是n1.n2. 算法1:最简单的办法就是把两个数 ...
- C++ 第九课 标准c数学函数
abs() 求绝对值 acos() 求反余弦 asin() 求反正弦 atan() 求反正切 atan2() 求反正切,按符号判定象限 ceil() 求不小于某值的最小整数 (求上界) cos() 求 ...
- 有关/proc/uptime这个文件里两个参数所代表的意义
有关/proc/uptime这个文件里两个参数所代表的意义: [root@app ~]#cat /proc/uptime 3387048.81 3310821.00 第一个参数是代表从系统启动到现在的 ...
- Linux文件的软链接和硬链接
1.Linux链接概念 Linux链接分两种,一种被称为硬链接(Hard Link).还有一种被称为符号链接(Symbolic Link).默认情况下.ln命令产生硬链接. 1.1索引节点 索引节点是 ...
- Lucene底层原理和优化经验分享(1)-Lucene简介和索引原理
Lucene底层原理和优化经验分享(1)-Lucene简介和索引原理 2017年01月04日 08:52:12 阅读数:18366 基于Lucene检索引擎我们开发了自己的全文检索系统,承担起后台PB ...