jhipster liquibase不会更新数据库 [英] jhipster liquibase doesn't update database

查看:248
本文介绍了jhipster liquibase不会更新数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图添加一个新实体,我不使用完整的热重装,所以我创建了一个db-changelog-002.xml文件,并在文件的变更集中创建了新表.然后我运行了一个mvn spring-boot:run,但是我的数据库没有被新表更新. 正常吗?

I m trying to add a new entity, I don't use the full hot reload, so I created a db-changelog-002.xml file with the new table to be created in the changeset of the file. Then I ran a mvn spring-boot:run, but my database doesn't get updated with the new table. Is it normal?

谢谢.

推荐答案

您必须将文件添加到master.xml文件中,如下所示.

You must add your file to master.xml file, like below.

<include file="classpath:config/liquibase/changelog/db-changelog-002.xml" relativeToChangelogFile="false"/>

这篇关于jhipster liquibase不会更新数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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