Skip to content

Liquibase configuration

yuriikoval1997 edited this page Jan 7, 2020 · 17 revisions

Liquibase configuration is located in property files.

  • application-dev.properties - configuration for developer;
  • application-prod.properties - configuration for server.

Configurations for application-dev.properties:

spring.liquibase.enabled=true

spring.liquibase.change-log=classpath:db/changelog/db.changelog-master.xml

spring.liquibase.user=${user}

spring.liquibase.password=${passwordLiquibase}

`spring.liquibase.url=jdbc:postgresql://localhost:5432/greencity

Pom.xml

        <plugin>
            <groupId>org.liquibase</groupId>
            <artifactId>liquibase-maven-plugin</artifactId>
            <version>3.4.1</version>
        </plugin>

More about liquibase