File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 11# Pattern Atlas API
2+
3+ ## How to generate a new Liquibase changelog for changed database schema
4+
5+ 1 . have a database instance running with the new schema on port 5060
6+ 2 . hava a database instance running with the old schema on port 5061
7+
8+ create the file ` liquibase.properties ` with the following content:
9+ ```
10+ url=jdbc:postgresql://localhost:5061/patternatlas
11+ username=patternatlas
12+ password=patternatlas
13+ referenceUrl=jdbc:postgresql://localhost:5060/patternatlas
14+ referenceUsername=patternatlas
15+ referencePassword=patternatlas
16+ liquibase.hub.mode=off
17+ ```
18+
19+ Run: ` liquibase diff-changelog --changelog-file=new_changelog.xml `
20+
21+ ## Troubleshooting
22+
23+ ### Liquibase ChangelogParseException the file was not found
24+
25+ Remove the ` file: ` prefix from the referenced files in the ` patternatlas_full.xml ` file.
26+
27+ ### Liquibase can't find ` patternatlas_schema.xml `
28+
29+ Copy all the Liquibase changelog files into a folder inside the project folder and include this folder in the classpath.
30+ This can be done for example in the run configuration in IntelliJ.
You can’t perform that action at this time.
0 commit comments