0
Hello, I have a problem running Liquibase with Maven + Spring Boot. The following occurs:
I have two schemas, schema1 and schema2. In the project, I have 3 scripts in native SQL: first create the two schema, then create the tables and third populate the data.
But every time I make one mvn clean install
and then java -jar projeto-x-0.0.1.jar
it says in the logs that schemas already exist. Even taking away the sql that creates the schemas first, the second script (that creates the tables) also gives error.
I would like to know how to do so that when I upload the project, it does not execute the same changesets that were already executed the first time. (Obs: the two liquibase tables, databasechangelog and databasechangeloglock, are being created in the public schema)
OBS: I found the cause: when I first go up, it creates the databasechangelog and databasechangeloglock tables in the public. But then when I go up the second time he creates in schema1. Does anyone know how to solve this problem?