Skip to content

Commit

Permalink
Use a --changeLogFile arg in docs that works with generateChangeLog (#…
Browse files Browse the repository at this point in the history
…145)

Update the `--changeLogFile` argument in `README.md` to work with the `generateChangeLog` command. If the argument is `changelog.sql`, then `generateChangeLog` will fail with the below error.

```
[2023-05-17 17:36:57] SEVERE [liquibase.integration] Serializing changelog as sql requires a file name in the format *.databaseType.sql. Example: changelog.h2.sql. Passed: changelog.sql
liquibase.exception.CommandExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: liquibase.exception.UnexpectedLiquibaseException: Serializing changelog as sql requires a file name in the format *.databaseType.sql. Example: changelog.h2.sql. Passed: changelog.sql
	at liquibase.command.CommandScope.execute(CommandScope.java:235)
	at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:55)
	at liquibase.integration.commandline.CommandRunner.call(CommandRunner.java:24)
```
  • Loading branch information
Gabriel Deal authored Oct 4, 2023
1 parent bb20a2e commit 9beb2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ logLevel: WARN
- updating the database schema

```shell
liquibase --changeLogFile=changelog.sql update
liquibase --changeLogFile=changelog.bigquery.sql update
```

- generating the schema from current database state
Expand Down

0 comments on commit 9beb2ed

Please sign in to comment.