Skip to content

PouyaPouryaie/liquibaseSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquibase Sample

how use liquibase with spring and maven plugin

Getting Started

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:
two path for use liquibase

  • use maven plugin
  • use spring

preCondition

  • create database and add config to application.properties

maven plugin

  • create db.changelog-master.yaml for define changeSet
  • mvn liquibase:update command for update db with changeSet
  • mvn liquibase:rollback -Dliquibase.rollbackCount=1
    for rollback with count from last
  • mvn liquibase:rollback -Dliquibase.rollbackTag=version_1.3
    for rollback after specific tag

spring

  • add follow properties at application.properties '''spring.liquibase.change-log=classpath:db.changelog-master.yaml
    spring.liquibase.enabled=false'''

  • run project

About

how use liquibase with spring and maven plugin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages