• Task
  • Version · 6.0
  • Run Liquibase against the H2 sandbox

Run Liquibase against the H2 sandbox

Last updated: November 4, 2026

Before you begin

Procedure

1

Download the Liquibase installer

2

Select download to run the installer.

3

Add Liquibase to your system PATH.

4

Verify Liquibase has been added to your system PATH

liquibase --version
5

Copy the Liquibase examples directory from the installation directory to another location on your machine.

6

Start the H2 database

liquibase init start-h2
7

Run your changelog

liquibase update
8

Confirm that the PERSON and COMPANY tables were added.

Get started with Liquibase 4
9

Using a text editor open the example-changelog file and add the following changeset to the end of the file.

loading

loading

loading

loading
10

Save and close example-changelog

11

Enter the following command

liquibase update
12

Confirm the update by refreshing the database console and verifying that the NICKNAME column has been added to the PERSON table.

get-started-h2-new-changeset
13

Review the update report