Skip to content

Commit 076563b

Browse files
committed
add "How to" and troubleshooting to readme
1 parent 59ca7fe commit 076563b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
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.

0 commit comments

Comments
 (0)