jHipster:如何在生产中将 table、字段添加到 table?

jHipster: How to add table, fields to table on the production?

如何将 table, 字段添加到 table 到 jHipster 项目的生产中? 我读了这个 https://www.jhipster.tech/development/,但它是为了开发。 在此之后产品数据库是否会更新:

./mvnw  -DskipTests  -Pprod package 

或开始后:

./my-project.war 

我的pom.html部分:

<plugin>
        <groupId>org.liquibase</groupId>
        <artifactId>liquibase-maven-plugin</artifactId>
        <version>${liquibase.version}</version>
        <configuration>
            <changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
            <diffChangeLogFile>src/main/resources/config/liquibase/changelog${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
            <driver>com.mysql.jdbc.Driver</driver>
            <url>jdbc:mysql://localhost:3306/mydatabase_dev</url>
        </configuration>
</plugin>

这是否意味着我应该为 select 更改我要更新的数据库?

在产品中添加字段时的操作顺序是什么?

我认为 Jhipster 带有 liquibase 产品。

Jhipster 有子生成器可以为你做这件事。

可以被运行调用

jhipster entity --[options]

可以通过键入

找到这些选项的参考

jhipster entity --help

如果您需要,可以在此处找到更多信息:Jhipster