Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Liquibase

Project structure is familar to maven structure. Started from "db" directory.

  • Directory init_scripts has required files to create from scratch database. Use that if database doesn't exist
  • Main directory for changes -> src/main/resources/changelog/
  • Main file has name changelog-master.xml (all opretion srart from here). You also start from here to analyze how it works

Liquibase

Good materials to understand how to work with liquibase:

Other materials with examples:

Liquibase data types:

Liquibase articles:

Liquibase Gradle plugin documentation:

Liquibase gradle

  • For update on development environment, you'd run:

      >gradlew update -PfileName=changelog-example.xml
    
  • For rollback by count on development environment, you'd run:

      >gradlew rollbackCount -PfileName=changelog-example.xml -PliquibaseCommandValue=<count value>