Skip to content

Generating ddl script #1689

Answered by msavy
LucasPenido asked this question in Help
Dec 10, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I've reworked DDL generation slightly on the 3.x branch to make it a bit easier to use, which might give you some inspiration.

Check out distro -> ddl -> pom.xml

The structure is similar on master/Apiman 2.x , but some sections of the POM are commented out in the older version because there were some dependency issues that came up occasionally and made the DDL generation fail. Feel free to experiment.

For example, on 3.x, you should be able to run mvn clean install in the DDL folder and it will generate a new liquibase diff file in target that includes your changes.

Add the generated liquibase diff XML to src/main/liquibase/current and modify it to remove anything extraneous or weird (som…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LucasPenido
Comment options

Answer selected by LucasPenido
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants